-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hbm2java no generics, also with jdk5="true"
PostPosted: Fri Dec 26, 2008 1:24 am 
Newbie

Joined: Fri Dec 26, 2008 1:13 am
Posts: 8
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.