Re: [jira] Created: (XDP-211) Tag @hibernate.query with hibernate3 generates invalid xml (<query> as child of <class>)
"Marco Mistroni" <[email protected]> Fri, 5 Jan 2007 08:54:14 +0000
| Newsgroups | gmane.comp.java.xdoclet-plugins |
|---|---|
| Message-ID | <[email protected]> |
mmm, weird...
i have this code
* @hibernate.class
* @hibernate.query
* name="findByDlf"
* query="from com.waersystems.mw.dto.Configurator c WHERE
c.site= ? "
*/
that generates a perfectly fine mapping file.
i am using to XP, maven2 and hibernate3...., here's my pom.xml (only
relevant part)
<plugin>
<groupId>xdoclet</groupId>
<artifactId>maven2-xdoclet2-plugin</artifactId>
<version>2.0.5-SNAPSHOT</version>
<executions>
<execution>
<id>xdoclet</id>
<phase>process-classes</phase>
<goals>
<goal>xdoclet</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>xdoclet-plugins</groupId>
<artifactId>xdoclet-plugin-hibernate</artifactId>
<version>1.0.4-SNAPSHOT</version>
</dependency>
</dependencies>
<configuration>
<configs>
<config>
<components>
<component>
<classname>
org.xdoclet.plugin.hibernate.HibernateMappingPlugin</classname>
<params>
<version>3.0</version>
<!--<destdir>${basedir}/src/main/resources</destdir>-->
<destdir>${project.build.outputDirectory}</destdir>
</params>
</component>
</components>
</config>
</configs>
</configuration>
</plugin>
am i using an old version?
thanks and regards
marco
On 1/5/07, krico (JIRA) <jira-yCVjj/[email protected]> wrote:
>
> 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
> _______________________________________________
> xdoclet-plugins-interest mailing list
> xdoclet-plugins-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest
>
-------------------------------------------------------------------------
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
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest