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.
|