-->
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: Can i configure generated code before being generated?
PostPosted: Wed Jan 20, 2010 1:04 pm 
Beginner
Beginner

Joined: Tue Jan 19, 2010 7:11 am
Posts: 23
Location: Spain
Hi, i want generate code with annotations and configure this code before being generated.

I want use hibernate tools and jpa from build.xml... one way is <jdbcconfiguration>

I have two questions:

1) Can i configure with hibernate.reveng.xml to put a lazy or eager annotation to a entity or field?

2) Can i configure the annotations of the generated code with <jpaconfiguration>? (Slightly similar to hibernate.reveng.xml file)

Thanks!!!


Top
 Profile  
 
 Post subject: Re: Can i configure generated code before being generated?
PostPosted: Sat Jan 23, 2010 3:01 am 
Newbie

Joined: Fri Jan 22, 2010 1:23 am
Posts: 3
For your first question,I can say that you can configure your XML file with specified annotations.But sorry to say that I have no idea for second one.


Top
 Profile  
 
 Post subject: Re: Can i configure generated code before being generated?
PostPosted: Mon Jan 25, 2010 6:29 am 
Beginner
Beginner

Joined: Tue Jan 19, 2010 7:11 am
Posts: 23
Location: Spain
Thank you very much jacksmith

can you give me some example? or do you say me how to do it?

Thanks!!!!


Top
 Profile  
 
 Post subject: Re: Can i configure generated code before being generated?
PostPosted: Thu Jan 28, 2010 5:35 am 
Beginner
Beginner

Joined: Tue Jan 19, 2010 7:11 am
Posts: 23
Location: Spain
Thanks vyemialyanchyk , but i would want more...

Something as hibernate.reveng.xml + a MyStrategy.java.

I will try to use the previous thing.

Thanks!!!


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.