mirror of
https://github.com/apache/openjpa.git
synced 2025-03-07 00:49:39 +00:00
OPENJPA-1746: Allow null values for persistent unit configuration.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@979426 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
892755a822
commit
40e05de742
@ -62,18 +62,12 @@ public class PersistenceUnitInfoImpl
|
|||||||
|
|
||||||
public static final String PERSISTENCE_VERSION = "PersistenceVersion";
|
public static final String PERSISTENCE_VERSION = "PersistenceVersion";
|
||||||
|
|
||||||
/**
|
|
||||||
* Properties key for the SHARED_CACHE_MODE. The JPA 2.0 spec
|
|
||||||
* SharedCacheMode maps to OpenJPA's DataCacheMode so we're using that
|
|
||||||
* class' simple name as the property key.
|
|
||||||
*/
|
|
||||||
// public static final String SHARED_CACHE_MODE=DataCacheMode.class.getSimpleName();
|
|
||||||
|
|
||||||
private static final Localizer s_loc = Localizer.forPackage
|
private static final Localizer s_loc = Localizer.forPackage
|
||||||
(PersistenceUnitInfoImpl.class);
|
(PersistenceUnitInfoImpl.class);
|
||||||
|
|
||||||
private String _name;
|
private String _name;
|
||||||
private final Properties _props = new Properties();
|
private final HashMap<Object,Object> _props = new HashMap<Object, Object>();
|
||||||
private PersistenceUnitTransactionType _transType =
|
private PersistenceUnitTransactionType _transType =
|
||||||
PersistenceUnitTransactionType.RESOURCE_LOCAL;
|
PersistenceUnitTransactionType.RESOURCE_LOCAL;
|
||||||
|
|
||||||
@ -266,11 +260,13 @@ public class PersistenceUnitInfoImpl
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Properties getProperties() {
|
public Properties getProperties() {
|
||||||
return _props;
|
Properties copy = new Properties();
|
||||||
|
copy.putAll(_props);
|
||||||
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProperty(String key, String value) {
|
public void setProperty(String key, String value) {
|
||||||
_props.setProperty(key, value);
|
_props.put(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addTransformer(ClassTransformer transformer) {
|
public void addTransformer(ClassTransformer transformer) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user