Update database schema with hibernate
Posted
by
blow
on Stack Overflow
See other posts from Stack Overflow
or by blow
Published on 2011-01-01T16:52:52Z
Indexed on
2011/01/01
23:54 UTC
Read the original article
Hit count: 239
Hi all, with
<property name="hibernate.hbm2ddl.auto">update</property>
i can create my database schema, it automatically add properties, constraint, key etc... But what about UPDATE the database schema? If i remove some property from my entities, hibernate doesn't remove it, or if i change some constraint, hibernate doesn't touch constraint already created...
So, there is a way to make hibernate really update the database schema?
Thanks.
© Stack Overflow or respective owner