This content has been marked as final.
Show 2 replies
-
1. Re: Database empty after JBoss restart
pdog4x4 Mar 14, 2006 10:26 AM (in response to marc-1)Are you using hand coding your jboss-ejbcmp.xml, XDoclet or EJB3?
If you are using XDoclet, try adding @jboss.persistence remote-table = "false" as demonstrated below./** * @jboss.persistence remove-table = "false" */ public abstract class TestBean implements EntityBean { ... }
Hope that helps!
Joshua Preston. -
2. Re: Database empty after JBoss restart
da.ogre Mar 14, 2006 1:27 PM (in response to marc-1)Hi!
Change the value create-drop to update. Create-drop means that the DDLs will be created from the mapping files, and will create the corresponding tables in the database, and will be dropped when the beans are undeployed.
So your fixed property will be:<property name="hibernate.hbm2ddl.auto" value="update"/>
Happy coding! :)