-->
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.  [ 1 post ] 
Author Message
 Post subject: Turn off automatic schema update fails
PostPosted: Thu Apr 01, 2010 6:59 am 
Newbie

Joined: Thu Apr 01, 2010 6:46 am
Posts: 1
Hello,

I use automatic DB creation on development with
<property name="hibernate.hbm2ddl.auto" value="create-drop"/> in persistence.xml
and I used to simply remove the property and restart the application server when I didn't need recreation of the db.
This worked fine for a while.

However, after a recent small DB change, I recreated the DB with the same property, but I don't manage to switch it off again.

I tried the following:
- delete the property hibernate.hbm2ddl.auto and restart the app server (didn't work)
- delete the property, stop the DBservice, restart app server, start DBservice, restart app server again (didn't work)
- delete the deployment war file and restart app server and redeployed the project (didn't work)

So the server doesn't catch the change in persistence.xml anymore. As a result, my db is recreated every time I restart the app server and I loose my test data.

What am I doing wrong? Any ideas?

PS. I am using: oracleXE, hibernate, seam & richfaces, jboss app server.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.