-
1. Re: Database overwritten at each JBoss startup once again.
silviu.marcu Dec 9, 2005 2:50 PM (in response to tzablock)what db are you using ?
-
2. Re: Database overwritten at each JBoss startup once again.
tzablock Dec 9, 2005 3:20 PM (in response to tzablock)I've managed to fix this issue at last. I'm using Oracle Express database. Unfortunately JBoss is not reading this hbm2dll property while deploying the application. I had to configure the persistance.properties file in the ejb3.deployer folder. That was the solution...
-
3. Re: Database overwritten at each JBoss startup once again.
silviu.marcu Dec 9, 2005 3:30 PM (in response to tzablock)it is reading ...
you should have:
in xyz.ejb3 file you can have a META-INF/persistence.xml
this is read at ejb3 deploy time ... -
4. Re: Database overwritten at each JBoss startup once again.
jmoring Dec 10, 2005 12:29 PM (in response to tzablock)How do you get JBoss/Hibernate to never generate DDL? I left the option out of the persistence.xml file and it seems the default is to create the tables on startup and drop them on shutdown. If this is true it is insane. Who would ever want that option let alone have it as the default. Hopefully I am missing something here as I am new to EBJ3 persistence.
SQLServer 2000
jTDS 1.2
Thanks
Jim -
5. Re: Database overwritten at each JBoss startup once again.
jmoring Dec 10, 2005 12:56 PM (in response to tzablock)Solved my problem....
Sorry I didn't search the forums before posting this (emotions were running high:) ). The default Persistence.properties in Ebj3/deployer contained the SchemaUpdate option. I removed it and now my tables are unchanged at start up.