JBPM 5: where is db-tables-scripts?

I created a simple example of persistence in JBPM 5.4. It worked successfully and the recoords were successfully inserted into the table in the generated schema.

But my question is, although the table was created in the schema, it also created the other three tables NodeInstanceLog VariableInstanceLog ProcessInstanceLog

but where are the scripts to create these tables?

+3


source to share


2 answers


There are no scripts in the database.



The tables in the database are created using JPA objects. For example, SessionInfo, WorkItemInfo, ProcessInstanceInfo objects are @Entity annotated classes, and tables are created when jpbm-console-server is deployed.

+4


source


In the persistence.xml file, the following hibernate entry is responsible for db creation scripts, assuming the persistence provider used for JPA is Hibernate.



<property name="hibernate.hbm2ddl.auto" value="update" />

      

0


source







All Articles