-->
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: Data being emptied from MySQL database
PostPosted: Thu Sep 07, 2006 2:42 am 
Beginner
Beginner

Joined: Thu Aug 04, 2005 5:06 am
Posts: 31
Location: Bedford, UK
Hibernate version: 3.1.3

Got a weird one ... which'll probably need debugging but any ideas appreciated.

I have a webapp which when hibernate opens the database the data from all tables is being cleared on initiation.

I put the data back in and it remains until I restart the server.

Any pointers appreciated


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 07, 2006 11:16 am 
Beginner
Beginner

Joined: Thu Aug 04, 2005 5:06 am
Posts: 31
Location: Bedford, UK
In the end I found it was this little line that I somehow introduced into hibernate.cfg.xml

<property name="hibernate.hbm2ddl.auto">create-drop</property> -->

B'stard thing. All sorted now.


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.