The query task

Description

Running the following query task against my database:
<htools destdir="${sql}">
<classpath refid="classpath.apps"/>
<annotationconfiguration configurationfile="${src}/hibernate.cfg.xml"/>
<query destfile="sql.log">from Note</query>
</htools>

Fails with the attached lavish stack trace. The cause of the problem appears to be a single character typo in:
org.hibernate.tool.hbm2x.QueryExporter on line 47 where a variable "iter" is used instead of "iter1".

There also appears to be a bug preventing the nested <hql> tasks from working, but I'm uncertain if that's an artifact of this problem or a separate issue.

Environment

Hibernate 3.1.3, against HSQL DB.

Attachments

1

Activity

Show:

Max Rydahl AndersenJune 25, 2006 at 6:28 PM

it was broken in svn. I fixed it, thanks. (stuuupid error)

Dave MinterJune 18, 2006 at 10:45 PM

Not verified against latest svn yet - although the suspicious looking code is in the latest QueryExporter.java from subversion.

I'll try and get my act together and test against svn source asap.

Max Rydahl AndersenJune 17, 2006 at 5:57 PM

have you verified this against latest svn or jbosside release?

Fixed

Details

Assignee

Reporter

Bug Testcase Reminder (view)

Bug reports should generally be accompanied by a test case!

Bug Testcase Reminder (edit)

Bug reports should generally be accompanied by a test case!

Participants

Dave Minter
Max Rydahl Andersen

Components

Fix versions

Affects versions

Priority

Created June 17, 2006 at 10:01 AM
Updated August 15, 2006 at 2:05 AM
Resolved August 15, 2006 at 2:05 AM