Hi all,
For my application, I am using two data sources, one as a bean for the
application, and the other not as a bean, fed to activiti. This works well
with Postgres. But for unit testing, I am trying to use in-memory H2. The
problem I am facing is, H2 abruptly stops inserting into database when
CrudRepository save method is called.
My config file looks something like this:
# Database Setting
database.jdbc.driver=org.h2.Driver
database.jdbc.url=jdbc:h2:mem:testdb;INIT=create schema if not
exists testschema\\; set schema testschema\\;
database.type=H2
database.hibernate.dialect=org.hibernate.dialect.H2Dialect
database.username=sa
database.password=
database.entityPackagesToScan=com.instartlogic.certificate.data.models
# Activiti Database Settings
activiti.database.jdbc.driver=org.h2.Driver
activiti.jdbc.url=jdbc:h2:mem:testdb;INIT=create schema if not
exists testschema\\; set schema testschema\\;
activiti.database.schema=testschema
activiti.database.type=H2
activiti.database.username=sa
activiti.database.password=
I have tried to feed both of them different databases, schemas or the same
database and schema. But I still get the same result every time. Has anyone
experienced this?
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.