Hi,
I started using Hibernate 3 with Sun Java(TM) Development Kit (JDK) 6 since last week and I am trying to reverse engineer POJO classes from a MySQL database. I managed to do this, but no generic types are created. I created the following Ant-targets:
<target name="reveng.pojos" depends="reveng.hbmxml" >
<hibernatetool destdir="${src}" >
<configuration>
<fileset dir="${src}" >
<include name="**/*.hbm.xml"/>
</fileset>
</configuration>
<hbm2java/>
</hibernatetool>
</target>
<target name="hbm2java-contentional-hbm">
<hibernatetool destdir="${src}">
<configuration configurationfile="${src}/hibernate.cfg.xml"/>
<hbm2java jdk5="true" ejb3="false" />
</hibernatetool>
</target>
As far as I can see, I followed the documentation. The jdk5="true" should give me generics, but it does not. So what am I doing wrong?
Cheers,
Andrej
|