Using Hibernate-2.1 Beta 1, I tried to define a named sql query
in the mapping file with a sql-query element.
There were two problems with this.
1.
http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd
doesn't deifne this element and as a result fails to validate the
document. I couldn't find a 2.1 dtd anywhere in the installation base.
2. I'm getting an error at run-time, the error happens during the
parsing of the xml, also a result of the above.
Is this not an intended use of SQL queries? I know they can be
created dynamically from the Session, however it seems that what
I'm trying to do should work as well.
Thanks.