david wrote:
I am happy to help you with XDoclet2 as well. I don't want to leave XDoclet 1.x as I have projects currently using it.
As I understand from users point of view changes are minimal. Tag definition (like @hibernate.list ... ) almost the same as in xdoclet 1.xx
You need to change only build script.
for example if you use maven then you need to do
1) Add to project.properties
Code:
# xdoclet for Hibernate3
maven.xdoclet.0=hibernate
maven.xdoclet.0.fileset.0.dir=${pom.build.sourceDirectory}/${hibernate.domain.package}/
maven.xdoclet.0.fileset.0.include=**/*.java
maven.xdoclet.0.hibernate=org.xdoclet.plugin.hibernate.HibernateMappingPlugin
maven.xdoclet.0.hibernate.destdir=${maven.build.dest}
maven.xdoclet.1=hibernate
maven.xdoclet.1.fileset.0.dir=${pom.build.sourceDirectory}/${hibernate.domain.package}/
maven.xdoclet.1.fileset.0.include=**/*.java
maven.xdoclet.1.hibernate=org.xdoclet.plugin.hibernate.HibernateConfigPlugin
maven.xdoclet.1.hibernate.destdir=${maven.build.dest}
And add following plugin dependencies to project.xml
Code:
<dependency>
<groupId>xdoclet-plugins</groupId>
<artifactId>xdoclet-plugin-hibernate</artifactId>
<version>SNAPSHOT</version>
<properties>
<xdoclet.dependency>true</xdoclet.dependency>
</properties>
</dependency>
<dependency>
<groupId>xdoclet</groupId>
<artifactId>maven-xdoclet2-plugin</artifactId>
<version>SNAPSHOT</version>
<type>plugin</type>
</dependency>
Thats all.
Better to see what have changed is to try new XDoclet plugin. You'll see - it is quite easy to migrate to new xdoclet.