-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate3.2.0.GA | hbm2ddl.auto=update
PostPosted: Thu Sep 12, 2013 6:17 am 
Newbie

Joined: Thu Sep 12, 2013 6:14 am
Posts: 1
Hi Guys,

I came across a behavior of hibernate while working with my current project.

There is a property in hibernate hbm2ddl.auto(when set to update) is used to update the database with respect to any changes made in hibernate .xml mapping files for eg: updating the table, adding a new column etc.

I tried to change the not-null property for a column in table and i made those changes in mapping files but unfortunately it was not updated in database. Google told me that this property will not allow me to update a not-null constraint for any column.

Now, I will have to keep a track of all these kind of changes and perform them in the database manually which i don't feel is correct way.

Can someone please help me with the problem.

Thanks
Ritesh


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

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.