[
http://jira.codehaus.org/browse/XDP-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=227529#action_227529
]
Konstantin Pribluda commented on XDP-249:
-----------------------------------------
You just write your queries in XML in separate file, put them on classpath
and then include in your configuration.
If you use @-tag on class level is meant for the stuff in <class>.
> Tag @hibernate.query with hibernate3 only generates hbm.xml with query tag 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ánchez
>
> I am using a @hibernate.query tag and maven2-xdoclet2-plugin, the
> generate-resources phase generates hbm.xml files with query tag into class
> tag.
> Example:
> <hibernate-mapping>
> <class ...>
> ......
> <query .../>
> </class>
> </hibernate-mapping>
> It¡s 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.HibernateMappingPlugin</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:
http://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
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest