Hi,
when defining queries in the hbm-file, you need to specify attributes by name and type
Code:
<query-param name="content" type="foo.Bar" />
Why is it so that type needs to be in classpath for the hbm2dao to work? In my case, the parameter is of a type that is about to be generated, and so this fails. I understand that hbm2dao calls hibernate to convert primitive types to classes, but couldn't non-primitive types just be used as they are written in the query-param declaration?
I could probably do this by first generating all pojo-s (the types that will be parameters), then compile them, then generate all dao-s. This is however not very convenient when building with maven.
Thanks!
Hibernate tools version: 3.1beta2
Hibernate version: 3.1
Mapping documents:Code between sessionFactory.openSession() and session.close():Full stack trace of any exception that occurs:Name and version of the database you are using:The generated SQL (show_sql=true):Debug level Hibernate log excerpt:[/code]