diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java index be80aa2db..69e830bf0 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java @@ -44,6 +44,10 @@ public class DataCachePCDataImpl private final long _exp; + public DataCachePCDataImpl(Object oid, ClassMetaData meta) { + this(oid, meta, DataCache.NAME_DEFAULT); + } + /** * Constructor. */ diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCDataImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCDataImpl.java index 1036a9f4c..07d94cb06 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCDataImpl.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCDataImpl.java @@ -20,6 +20,7 @@ package org.apache.openjpa.kernel; import java.util.BitSet; +import org.apache.openjpa.datacache.DataCache; import org.apache.openjpa.meta.ClassMetaData; import org.apache.openjpa.meta.FieldMetaData; @@ -42,6 +43,10 @@ public class PCDataImpl private Object _impl = null; private Object[] _fieldImpl = null; + public PCDataImpl(Object oid, ClassMetaData meta) { + this(oid, meta, DataCache.NAME_DEFAULT); + } + /** * Constructor. */