summaryrefslogtreecommitdiffstats
path: root/datarouter-prov/src/test/resources/META-INF/persistence.xml
diff options
context:
space:
mode:
authoreconwar <conor.ward@ericsson.com>2018-08-31 11:36:11 +0000
committereconwar <conor.ward@ericsson.com>2018-08-31 11:36:11 +0000
commit8ef486fc4188fe484ab112db936f5ead2d612852 (patch)
tree0e2099c21a4457b36a6d89a2b42928d24ce7e1d7 /datarouter-prov/src/test/resources/META-INF/persistence.xml
parente647d5737c2735262a9cee302eb82e83d19a27c1 (diff)
Add in memory DB to test Group
Change-Id: Ibfcd6044151c5b55263c701baf8619c7a15235ff Signed-off-by: Conor Ward <conor.ward@ericsson.com> Issue-ID: DMAAP-101
Diffstat (limited to 'datarouter-prov/src/test/resources/META-INF/persistence.xml')
-rwxr-xr-xdatarouter-prov/src/test/resources/META-INF/persistence.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/datarouter-prov/src/test/resources/META-INF/persistence.xml b/datarouter-prov/src/test/resources/META-INF/persistence.xml
new file mode 100755
index 00000000..6b42f8a9
--- /dev/null
+++ b/datarouter-prov/src/test/resources/META-INF/persistence.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
+ http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
+ <persistence-unit name="dr-unit-tests" transaction-type="RESOURCE_LOCAL">
+ <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
+ <properties>
+ <!-- Configuring JDBC properties -->
+ <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:test;MODE=MySQL;INIT=RUNSCRIPT FROM 'classpath:create.sql';DB_CLOSE_DELAY=-1"/>
+ <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
+
+ <!-- Hibernate properties -->
+ <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
+ <property name="hibernate.hbm2ddl.auto" value="validate"/>
+ <property name="hibernate.format_sql" value="false"/>
+ <property name="hibernate.show_sql" value="true"/>
+
+ </properties>
+ </persistence-unit>
+</persistence> \ No newline at end of file