J2EE_pro wrote:
I am in a project where we have just started to use Hibernate 3.0
Question on schema update.
Since we are still in the development stage, the database structure keeps changing. Whenever I recreate the database schema, even though the schema is properly updated, I loose all the previously existing data in the tables who's structure has not changed.
Is there any way where Hibernate holds the old data in the unchanged tables?
j2ee_pro
I think, therefore I survive.
use hibernate.hbm2ddl.auto=update instead of create or create-drop.