This content has been marked as final.
Show 3 replies
-
1. Re: Entity is removing my table!!! Why??!
ejb3workshop Jan 9, 2006 7:49 PM (in response to fabriciobraga)Have a look inside the persistence.properties file ($JBOSS_HOME/server/all/deploy/ejb3.deployer/META-INF/persistence.properties) and change
hibernate.hbm2ddl.auto=create-drop #hibernate.hbm2ddl.auto=create
to#hibernate.hbm2ddl.auto=create-drop #hibernate.hbm2ddl.auto=create
In other words comment out the create-drop line. If you like try out the create line to create the initial schema for you.
Alex
ejb3workshop.com -
2. Re: Entity is removing my table!!! Why??!
fabriciobraga Jan 12, 2006 12:51 PM (in response to fabriciobraga)
That was the problem! After edit persistence.properties as you told, the problem ends.
Thank you very much!
Regards,
Fabricio Braga -
3. Re: Entity is removing my table!!! Why??!
ejb3workshop Jan 13, 2006 4:06 AM (in response to fabriciobraga)Another, probably preferred, method would be to include a persistence.xml file in the META-INF folder within your ejb3 / jar file. Have a look at
http://trailblazer.demo.jboss.com/EJB3Trail/persistence/config/ for more information on how to do this.
Alex
ejb3workshop.com