-->
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: Re create schema
PostPosted: Mon Aug 08, 2005 4:23 pm 
Newbie

Joined: Thu Jul 28, 2005 9:33 am
Posts: 4
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.


Top
 Profile  
 
 Post subject: Re: Re create schema
PostPosted: Mon Aug 08, 2005 5:08 pm 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
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.

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


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.