-->
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: How do I override the default LAZY fetch in reveng
PostPosted: Wed Apr 08, 2009 10:03 am 
Newbie

Joined: Sat Mar 07, 2009 6:58 pm
Posts: 13
I have set up a reverse engineering system, with revenng.xml and a DelegatingReverseEngineeringStrategy, to handle some funny column names.

I am using hbm2java to generate java code with jpa annotations straight from the database tables.

I would like to be able to specify EAGER as a fetch policy on quite a few relationships.

Furthermore I would like to be able to specify the use of hibernate annotations instead of JPA annotations for a couple of special cases.

E.g. I would like to use the hibernate notations to replace the fetch policy to "subselect" or "join" of my relationships,as EAGER is going to kill me i a couple of places.

Is this possible or do I have to modify the stuff by hand afterwards?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 10, 2009 4:51 am 
Newbie

Joined: Sat Mar 07, 2009 6:58 pm
Posts: 13
Ok I can do all of this in the deployment descriptor, but to avoid confusing the simple GUI developers I would have liked the annotations to reflect the actual situation


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 10, 2009 5:04 am 
Newbie

Joined: Sat Mar 07, 2009 6:58 pm
Posts: 13
Ok I can do all of this in the deployment descriptor, but to avoid confusing the simple GUI developers I would have liked the annotations to reflect the actual situation


Top
 Profile  
 
 Post subject: Re: How do I override the default LAZY fetch in reveng
PostPosted: Tue May 05, 2009 7:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
adjust the templates is the simplest way.

or use latest release which have some support for controlling the associations "lazyiness". See the DTD.

_________________
Max
Don't forget to rate


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.