[jira] Commented: (XDP-211) Tag @hibernate.query with hibernate3 generates invalid xml (<query> as child of <class>)

"krico (JIRA)" <jira-yCVjj/[email protected]> Fri, 5 Jan 2007 03:50:09 -0600 (CST)
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <142128818.1167990609623.JavaMail.haus-jira@codehaus01.managed.contegix.com>
    [ http://jira.codehaus.org/browse/XDP-211?page=comments#action_84099 ] 
            
krico commented on XDP-211:
---------------------------

I am using hibernate-3.0.5.

My mapping is pointing to http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd

The exception is beeing thrown by SaxParser

Caused by: org.xml.sax.SAXParseException: Element "class" does not allow "query" here.
	at org.apache.crimson.parser.Parser2.error(Unknown Source)
	at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Unknown Source)
	at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
	at org.apache.crimson.parser.Parser2.content(Unknown Source)
	at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
	at org.apache.crimson.parser.Parser2.content(Unknown Source)
	at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
	at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
	at org.apache.crimson.parser.Parser2.parse(Unknown Source)
	at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
	at org.dom4j.io.SAXReader.read(SAXReader.java:465)
	at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:398)

> Tag @hibernate.query with hibernate3 generates invalid xml (<query> as child of <class>)
> ----------------------------------------------------------------------------------------
>
>                 Key: XDP-211
>                 URL: http://jira.codehaus.org/browse/XDP-211
>             Project: XDoclet 2 Plugins
>          Issue Type: Bug
>          Components: hibernate
>    Affects Versions: 1.0.4
>         Environment: Windows XP + Maven2 + jdk1.4
>            Reporter: krico
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV