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
|