From c83e35bab5aa44f01cb7a9089701ef963ee0c131 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Wed, 14 Feb 2018 12:52:31 -0500 Subject: Replace bitronix and eclipselink in persistence Replaced bitronix transaction manager, which is not intended for production, with jboss transaction manager. Eliminated eclipselink so that only hibernate is used for persistence for both JPA and drools-persistence. Added more test cases to EntityMgrTrans to provide coverage for various exception types. Moved object store to features/session-persistence/jta. Wrapped RuntimeException in specific type. Modified test to throw specific exception type. Converted GenSchema from an @Test to a main(). Logged caught exceptions in junit tests. Change-Id: I4b02efc8da43d20b2dbb3c0b25adc382e80474ec Issue-ID: POLICY-191 Signed-off-by: Jim Hahn --- .../src/test/resources/META-INF/persistence.xml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'feature-session-persistence/src/test/resources/META-INF') diff --git a/feature-session-persistence/src/test/resources/META-INF/persistence.xml b/feature-session-persistence/src/test/resources/META-INF/persistence.xml index 6794e24e..5cc1badc 100644 --- a/feature-session-persistence/src/test/resources/META-INF/persistence.xml +++ b/feature-session-persistence/src/test/resources/META-INF/persistence.xml @@ -23,16 +23,8 @@ 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"> - - org.eclipse.persistence.jpa.PersistenceProvider - org.onap.policy.drools.persistence.DroolsSessionEntity - - - - - - - org.eclipse.persistence.jpa.PersistenceProvider + + org.hibernate.jpa.HibernatePersistenceProvider org.onap.policy.drools.persistence.DroolsSessionEntity -- cgit 1.2.3-korg