-->
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.  [ 4 posts ] 
Author Message
 Post subject: Question about running adminapp 0.9.2
PostPosted: Mon Mar 15, 2004 8:46 pm 
Beginner
Beginner

Joined: Fri Mar 12, 2004 5:18 pm
Posts: 44
I am trying to run adminapp 0.9.2 on tomcat with mysql.

Can someone please tell me why every time I reset tomat and access the adminapp application, the data in the mysql are all gone?

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 16, 2004 4:57 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Check the value for the auto schema export in hibernate.properties. If its set to

hibernate.hbm2ddl.auto create-drop

the schema will be created at startup and dropped again on shutdown.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 04, 2004 9:20 am 
Beginner
Beginner

Joined: Thu Jan 15, 2004 11:16 am
Posts: 37
I find that with <property name="hibernate.hbm2ddl.auto">create-drop</property> the data from the tables is dropped but not the tables.

hiber 2.1.3
m$ sql server 2000


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 04, 2004 9:31 am 
Beginner
Beginner

Joined: Thu Jan 15, 2004 11:16 am
Posts: 37
In fact 'update' is the only setting that leaves the rows in the tables.
Both create and create-drop leave tables with no rows of data.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.