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:
A. Abram White 2007-01-04 00:31:29 +00:00
parent 3e6410b75d
commit 2013fb55b7
1 changed files with 2 additions and 2 deletions
openjpa-persistence/src/main/java/org/apache/openjpa/persistence

View File

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