-
1. Re: Table data loss after re-deploy application
melc Dec 12, 2011 4:18 AM (in response to jbpmdev)Hi,
Why don't you comment out the line,
<property name="hibernate.hbm2ddl.auto" value="create" />
after the first deployment?
Regarding the task service from the default ant script of jbpm, that attempts to insert users and groups, you can simply handle the exceptions with try catch in the code of the class DemoTaskService.java.
-
2. Re: Table data loss after re-deploy application
sanket.mohile Dec 14, 2011 6:31 AM (in response to jbpmdev)Hi.
Can you try with value - "validate" ?
<property name="hibernate.hbm2ddl.auto" value="validate" />
This is prevent re-creating your database schema on start up.
I have done the same and it works for me.
Regards,
Sanket.
-
3. Re: Table data loss after re-deploy application
melc Dec 14, 2011 9:23 AM (in response to jbpmdev)Hi,
I know the following link is not official (i think not much official documentation exists on hibernate.hbm2ddl.auto, other that basically the excerpt found inside the link) but it is helpfull (also check out the blog mentioned in that thread),
However, whatever your decision regarding hibernate.hbm2ddl.auto , take a look at the following opinion on this matter in production environments,
http://stackoverflow.com/questions/221379/hibernate-hbm2ddl-auto-update-in-production