Thanks Johann:
>About xdoclet2
>
>1) Yes, there are changes like that, but mostly they are minimal if you
>don't use many collections in your objects.
Is there documentation about the differences between Hibernate xdoclet and
xdoclet2?. I mean, the only difference is to replace "collection-xxx" tags for
just "xxx"?. I only noticed the obvious errors.
>2) The empty query is because you are breaking your queries in 2 or more
>lines, with queries, you just have to create the whole query in one line or
>else the query just breaks and your hibernate mapping with it.
No, the query is in just 1 line:
/**
* @hibernate.class table="I18N_Textos"
*
* @hibernate.query name="getTextoI18N" query="from I18NTextos i where
i.locale=:locale and i.texto=:texto"
*
*/
The generated XML is:
<query name="getTextoI18N">
<representation/><![CDATA[from I18NTextos i where i.locale=:locale and
i.texto=:texto]]>
</query>
(the "representation" node raises an error)
And the pom.xml:
<plugin>
<groupId>xdoclet</groupId>
<artifactId>maven2-xdoclet2-plugin</artifactId>
<configuration>
<configs>
<config>
<plugin>org.xdoclet.plugin.hibernate.HibernateMappingPlugin</plugin>
<params>
<version>2.0</version>
<destdir>${basedir}/target/classes/</destdir>
</params>
</config>
</configs>
</configuration>
<dependencies>
<dependency>
<groupId>xdoclet-plugins</groupId>
<artifactId>xdoclet-plugin-hibernate</artifactId>
<version>1.0.4-SNAPSHOT</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>xdoclet</goal>
</goals>
</execution>
</executions>
</plugin>
Thanks in advance,
Andrés