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
This commit is contained in:
Donald Woods 2010-04-08 19:49:00 +00:00
parent 366406216f
commit 8fb266f9f6
1 changed files with 1 additions and 1 deletions

View File

@ -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);