mirror of https://github.com/apache/openjpa.git
Allow non-string values in Map passed to Persistence.createEntityManagerFactory
for OpenJPA-specific properties. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3e6410b75d
commit
2013fb55b7
openjpa-persistence/src/main/java/org/apache/openjpa/persistence
|
@ -292,8 +292,8 @@ public class PersistenceUnitInfoImpl
|
|||
setNonJtaDataSourceName((String) val);
|
||||
else
|
||||
setNonJtaDataSource((DataSource) val);
|
||||
} else if (key instanceof String && val instanceof String)
|
||||
setProperty((String) key, (String) val);
|
||||
} else
|
||||
_props.put(key, val);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue