-->
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: hibernate.hbm2ddl.auto = create
PostPosted: Mon Jun 28, 2004 11:01 am 
Senior
Senior

Joined: Fri Jun 18, 2004 10:17 am
Posts: 140
Hi Guys,

Just want to confirm something that seems to have happened. I had about 10 rows in my database as created by Hibernate using

Code:
<property name="hibernate.hbm2ddl.auto">create</property>


A moment ago I went to use Hibernate again (having restarted the app server and so on) and found all my rows were missing.

I think it is the CREATE value I am giving hibernate.hbm2ddl.auto but acording to the documentation only CREATE-DROP would drop data??

Appreciated if someone could clarify what this setting does in CREATE mode. Am I suppsoed to remove this property once my Database has been created?

Thanks! ADC


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 28, 2004 12:16 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
create creates all tables from scratch and erases old ones. create-drop creates all tables from scratch and erases old ones and removes everything again on shutdown.


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.