AnsweredAssumed Answered

Activiti 5.19 with Hibernate

Question asked by turael on Apr 11, 2016
Latest reply on Apr 20, 2016 by jbarrez
Hello friends of activiti,

currently I have a very strange problem - my identity tables (from activiti.h2.create.identity.sql) not exists in my h2 database (for junit testing).
I use activiti 5.19.0 and hibernate 5.1.0 in my project. Activiti is connected to a transactionManager and a sessionFactory everything works fine…


2016-04-11 13:09:58 INFO  org.activiti.engine.impl.db.DbSqlSession:1292 - performing create on engine with resource org/activiti/db/create/activiti.h2.create.engine.sql
2016-04-11 13:09:58 INFO  org.activiti.engine.impl.db.DbSqlSession:1292 - performing create on history with resource org/activiti/db/create/activiti.h2.create.history.sql
2016-04-11 13:09:58 INFO  org.activiti.engine.impl.db.DbSqlSession:1292 - performing create on identity with resource org/activiti/db/create/activiti.h2.create.identity.sql
2016-04-11 13:09:58 INFO  org.activiti.engine.impl.ProcessEngineImpl:85 - ProcessEngine default created



but if I use this property in my hibernate configuration the problem starts:
<prop key="hibernate.hbm2ddl.auto">create</prop>



2016-04-11 13:15:28 INFO  org.activiti.engine.impl.db.DbSqlSession:1292 - performing create on engine with resource org/activiti/db/create/activiti.h2.create.engine.sql
2016-04-11 13:15:28 INFO  org.activiti.engine.impl.db.DbSqlSession:1292 - performing create on history with resource org/activiti/db/create/activiti.h2.create.history.sql
2016-04-11 13:15:28 INFO  org.activiti.engine.impl.ProcessEngineImpl:85 - ProcessEngine default created


I cannot create my own tables from entities and the whole activiti db at the same time.

Does someone knows what my problem could be?
Maybe there is another solution to create own and activit tables?


greetings
Turael

Outcomes