-->
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: hbm2java update Pojos
PostPosted: Mon Feb 26, 2007 8:15 am 
Beginner
Beginner

Joined: Wed Jan 31, 2007 11:39 am
Posts: 24
I am using the hbm2java to generate pojos from my hbm.xml files.
What I want to ask is, if I only want to add a new property in the hbm.xml is there any attribute for
hbm2java to indicate not to start the generation of the pojo from the scratch but only to update it?

I have the same question for the hbm2ddl that I use (from org.hibernate.tool.ant.HibernateToolTask).
Is there any attribute that helps to only update the schema and not to generate it from the start.

Thanking you in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 26, 2007 9:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
See http://www.hibernate.org/hib_docs/tools/reference/en/html/ant.html#d0e1204

This details the use and output of the various tools.
hbm2java -> No - you can setup an inhertance structure for your code.
hbm2ddl -> Yes - See the update option.


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