[jira] Resolved: (XDP-249) Tag @hibernate.query with hibernate3 only generates hbm.xml with query tag in class level

"Konstantin Pribluda (JIRA)" <jira-yCVjj/[email protected]> Tue, 6 Jul 2010 12:54:32 -0500 (CDT)
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <24295917.6254.1278438872452.JavaMail.haus-jira@codehaus01.managed.contegix.com>
     [ http://jira.codehaus.org/browse/XDP-249?page=3Dcom.atlassian.jira.pl=
ugin.system.issuetabpanels:all-tabpanel ]

Konstantin Pribluda resolved XDP-249.
-------------------------------------

    Resolution: Won't Fix

... as this funtionality can be achieved by other means

> Tag @hibernate.query with hibernate3 only generates hbm.xml with query ta=
g in class level
> -------------------------------------------------------------------------=
----------------
>
>                 Key: XDP-249
>                 URL: http://jira.codehaus.org/browse/XDP-249
>             Project: XDoclet 2 Plugins
>          Issue Type: Improvement
>          Components: hibernate, maven-plugin
>    Affects Versions: 1.0.5
>         Environment: WinXP SP2, Hibernate 3.2.6, Maven2, JavaSE 6
>            Reporter: Carlos David S=E1nchez
>
> I am using a @hibernate.query tag and maven2-xdoclet2-plugin, the generat=
e-resources phase generates hbm.xml files with query tag into class tag.
> Example:
> <hibernate-mapping>
> <class ...>
> ......
> <query .../>
> </class>
> </hibernate-mapping>
> It=A1s possible to generate query definition inside hibernate-mapping tag=
?, like this:
> <hibernate-mapping>
> <class ...>
> ......
> </class>
> <query .../>
> </hibernate-mapping>
> Or something I am doing wrong? This is a fragment of my pom.xml:
> <plugin>
>   <groupId>org.codehaus.xdoclet</groupId>
>   <artifactId>maven2-xdoclet2-plugin</artifactId>
>   <version>2.0.7</version>
>   <executions>
>     <execution>
>       <id>xdoclet</id>
>       <phase>generate-resources</phase>
>       <goals>
>         <goal>xdoclet</goal>
>       </goals>
>     </execution>
>   </executions>
>   <dependencies>
>     <dependency>
>       <groupId>org.codehaus.xdoclet</groupId>
>       <artifactId>xdoclet-plugin-qtags</artifactId>
>       <version>1.0.5</version>
>     </dependency>
>     <dependency>
>       <groupId>org.codehaus.xdoclet</groupId>
>       <artifactId>xdoclet-taglib-qtags</artifactId>
>       <version>1.0.5</version>
>     </dependency>
>     <dependency>
>       <groupId>org.codehaus.xdoclet</groupId>
>       <artifactId>xdoclet-plugin-hibernate</artifactId>
>       <version>1.0.5</version>
>     </dependency>
>   </dependencies>
>   <configuration>
>     <configs>
>       <config>
>         <includes>**/model/*.java</includes>
>         <components>
>           <component>
>             <classname>org.xdoclet.plugin.hibernate.HibernateConfigPlugin=
</classname>
>             <params>
>               <dialect>org.cad.custom.hibernate.dialect.PostgreSQLDialect=
</dialect>
>               <version>3.0</version>
>               <destdir>target/classes</destdir>
>             </params>
>           </component>
>           <component>
>             <classname>org.xdoclet.plugin.hibernate.HibernateMappingPlugi=
n</classname>
>             <params>
>               <version>3.0</version>
>               <force>true</force>
>               <destdir>target/classes</destdir>
>               <encoding>UTF-8</encoding>
>             </params>
>           </component>
>         </components>
>       </config>
>     </configs>
>   </configuration>
> </plugin>

-- =

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

       =


---------------------------------------------------------------------------=
---
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first