-->
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.  [ 4 posts ] 
Author Message
 Post subject: reverse engineering EAGER or LAZY
PostPosted: Mon Apr 07, 2008 3:54 am 
Newbie

Joined: Mon Nov 05, 2007 2:02 pm
Posts: 8
Hibernate version:3.0

I use Hibernate Tools Ant Task to reverse engineering hbm2java like this :

Code:
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="toolslib" />


I don't find where to config fetch LAZY or EAGER and by default it's LAZY and me, I want EAGER

Code:
@ManyToOne(fetch=FetchType.LAZY)


Thanks for your help
Laurent


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 8:09 am 
Newbie

Joined: Mon Nov 05, 2007 2:02 pm
Posts: 8
Anyone have ideas about this ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 9:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
change the templates or contribute a patch that enables reveng.xml to specify it ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 9:17 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
Check out hibernate-tools/pojo/Ejb3PropertyGetAnnotation.ftl.
${pojo.generateCollectionAnnotation(property, cfg)} is the line that handles collection annotations.

_________________
Sukirtha


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

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.