We developed a project in Java EE using the camunda glassfish distribution and we are using Oracle DB. We made the following changes in the following files:
-
In bpm-platform.xml we made this change:
<property name="databaseSchemaUpdate">false</property>
-
At the first deployment we create the table using the following in our persistence.xml:
<property name="toplink.ddl-generation" value="drop-and-create-tables" />
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
Then we changed the properties as per the following after the tables were created:
<property name="toplink.ddl-generation" value="none" />
<property name="hibernate.hbm2ddl.auto" value="update" />
-
We also made change in our processes.xml as per followed:
<property name="isDeleteUponUndeploy">false</property>
Every time we deploy our project with the new war file and the modified properties, our tables get dropped automatically. Please provide a good solution to the problem, so that the database tables stay as it is!