This content has been marked as final.
Show 3 replies
-
1. Re: While restarting records are deleted
wesslan Feb 6, 2006 8:38 AM (in response to sivasaravanank)"sivasaravanank" wrote:
Dear Friends
While restaring the JBoss server, Records inside the database were deleted.How can i set the records permenently(not remove from database)
Sivasaravanan.K
Do you maybe have
in your persistence.xml?
That means "recreate the DB on every deploy".
Regards -
2. Re: While restarting records are deleted
wesslan Feb 6, 2006 8:39 AM (in response to sivasaravanank)"wesslan" wrote:
"sivasaravanank" wrote:
Dear Friends
While restaring the JBoss server, Records inside the database were deleted.How can i set the records permenently(not remove from database)
Sivasaravanan.K
Do you maybe have
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
in your persistence.xml?
That means "recreate the DB on every deploy".
Regards
HTML-crap... :-)
< property name="hibernate.hbm2ddl.auto" value="update"/ > -
3. Re: While restarting records are deleted
wesslan Feb 6, 2006 8:41 AM (in response to sivasaravanank)This is surely not my day. First a wrongly posts three messages in the Webwork forum and now two here... :-)
THIS is the line I was meaning to write:
< property name="hibernate.hbm2ddl.auto" value="create-drop"/ >