-->
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.  [ 2 posts ] 
Author Message
 Post subject: customize hbm and java pojo generation
PostPosted: Thu Sep 28, 2006 1:29 pm 
Newbie

Joined: Thu Sep 28, 2006 1:16 pm
Posts: 1
Hi,

I am using Hibernate Tool Reverse engineer feature to generate hbm mapping files and java pojos from database schema. And I have it working okay. My question is how do I customize the output of hbm and pojo files.

For example, how do I control the output of hbm mapping file such that I want to specify lazy or cascade options for certain fields? Is this possible?

same for pojo generation, if I want to insert my custom equal() or hashCode methods in the pojo generation, can I do that?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 2:58 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the docs describe all the ways you can customize the output.

things like lazy, cascade etc. is not covered yet in an automatic/customziable way besides tweaking the templates.

_________________
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.  [ 2 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.