Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.0.4
-
Fix Version/s: None
-
Component/s: hibernate
-
Labels:None
-
Environment:Windows XP + Maven2 + jdk1.4
-
Number of attachments :
Description
I am using a @hibernate.query tag and the mapping task generates an invalid XXX.hdm.xml whith
<hibernate-mapping>
<class ...>
......
<query .../>
</class>
when I try to create a hibernate sessionfactory I get: the following exception
org.xml.sax.SAXParseException: Element "class" does not allow "query" here.
What hibernate version you are using? If you look into current DTD, you will see that
that queries are allowed inside classs/subclass elements, and now they (names) are scoped...
maybe an mergepoint will help you?
( if you provide a patch, I will can this really soon )