mirror of https://github.com/apache/openjpa.git
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:
parent
366406216f
commit
8fb266f9f6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue