diff options
author | 2020-03-16 05:55:43 +0000 | |
---|---|---|
committer | 2020-03-23 09:11:55 +0530 | |
commit | cfb63b2c5c381434a6fdea794ad0c2e89a2be328 (patch) | |
tree | 586b997a0634198bf0b0ded5dbbde51ff7311b27 /ransim/ransimctrlr/RANSIM-CTRLR/src/test/resources/META-INF/persistence.xml | |
parent | 44d8e15bda321936078b99f8222175a8ab016bc6 (diff) |
Initial code check-in RANSim Controller and RANSim GUI
Issue-ID: INT-1485
Signed-off-by: Priyadharshini <priyadharshini.b96@wipro.com>
Change-Id: I99fe693065072ff5c9b188f2177488a4cd93237d
Diffstat (limited to 'ransim/ransimctrlr/RANSIM-CTRLR/src/test/resources/META-INF/persistence.xml')
-rw-r--r-- | ransim/ransimctrlr/RANSIM-CTRLR/src/test/resources/META-INF/persistence.xml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ransim/ransimctrlr/RANSIM-CTRLR/src/test/resources/META-INF/persistence.xml b/ransim/ransimctrlr/RANSIM-CTRLR/src/test/resources/META-INF/persistence.xml new file mode 100644 index 0000000..1e194c6 --- /dev/null +++ b/ransim/ransimctrlr/RANSIM-CTRLR/src/test/resources/META-INF/persistence.xml @@ -0,0 +1,43 @@ +<persistence 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" + version="2.1"> + + <persistence-unit name="templatePU" transaction-type="RESOURCE_LOCAL"> + + <description>Hibernate test case template Persistence Unit</description> + <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> + + <exclude-unlisted-classes>false</exclude-unlisted-classes> + + <properties> + <property name="hibernate.archive.autodetection" value="class, hbm"/> + + <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/> + <property name="hibernate.connection.driver_class" value="org.h2.Driver"/> + <property name="hibernate.connection.url" value="jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1"/> + <property name="hibernate.connection.username" value="sa"/> + + <property name="hibernate.connection.pool_size" value="5"/> + + <property name="hibernate.show_sql" value="true"/> + <property name="hibernate.format_sql" value="true"/> + <property name="hibernate.hbm2ddl.auto" value="create-drop"/> + + <property name="hibernate.max_fetch_depth" value="5"/> + + <property name="hibernate.cache.region_prefix" value="hibernate.test"/> + <property name="hibernate.cache.region.factory_class" + value="org.hibernate.testing.cache.CachingRegionFactory"/> + + <!--NOTE: hibernate.jdbc.batch_versioned_data should be set to false when testing with Oracle--> + <property name="hibernate.jdbc.batch_versioned_data" value="true"/> + + <property name="javax.persistence.validation.mode" value="NONE"/> + <property name="hibernate.service.allow_crawling" value="false"/> + <property name="hibernate.session.events.log" value="true"/> + </properties> + + </persistence-unit> +</persistence> |