From 8fb266f9f69327b18064799d78284898bed7896d Mon Sep 17 00:00:00 2001 From: Donald Woods Date: Thu, 8 Apr 2010 19:49:00 +0000 Subject: [PATCH] OPENJPA-1618: Convert the value not the key. Merged in from trunk r932054. git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@932079 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java index 586308df1..ee1fd6af3 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java @@ -307,7 +307,7 @@ public class PersistenceUnitInfoImpl if (JPAProperties.PROVIDER.equals(key)) setPersistenceProviderClassName((String) val); else if (JPAProperties.TRANSACTION_TYPE.equals(key)) { - setTransactionType(JPAProperties.getEnumValue(PersistenceUnitTransactionType.class, key)); + setTransactionType(JPAProperties.getEnumValue(PersistenceUnitTransactionType.class, val)); } else if (JPAProperties.DATASOURCE_JTA.equals(key)) { if (val instanceof String) { setJtaDataSourceName((String) val);