mirror of https://github.com/apache/openjpa.git
OPENJPA-147. Changes resulting from tests via Kodo's harness.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@618537 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
18c90bbd0b
commit
012efc034c
|
@ -4160,6 +4160,12 @@ public class BrokerImpl
|
|||
} catch (Throwable t) {
|
||||
}
|
||||
}
|
||||
|
||||
if (_conf.getMetaDataRepositoryInstance().getMetaData(cls,
|
||||
getClassLoader(), false) == null)
|
||||
throw new IllegalArgumentException(
|
||||
_loc.get("no-interface-metadata", cls.getName()).getMessage());
|
||||
|
||||
try {
|
||||
return PCRegistry.newInstance(cls, null, false);
|
||||
} catch (IllegalStateException ise) {
|
||||
|
|
|
@ -269,7 +269,7 @@ public abstract class AbstractMetaDataDefaults
|
|||
* Returns ACCESS_FIELD by default.
|
||||
*/
|
||||
protected int getAccessType(ClassMetaData meta) {
|
||||
return ClassMetaData.ACCESS_FIELD;
|
||||
return ClassMetaData.ACCESS_FIELD;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -737,6 +737,9 @@ public class ClassMetaData
|
|||
// the implementations.
|
||||
if (isManagedInterface())
|
||||
setIntercepting(true);
|
||||
|
||||
// managed interfaces always use property access.
|
||||
setAccessType(ACCESS_PROPERTY);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -396,3 +396,4 @@ cant-serialize-pessimistic-broker: Serialization not allowed for brokers with \
|
|||
an active datastore (pessimistic) transaction.
|
||||
cant-serialize-connected-broker: Serialization not allowed for brokers with \
|
||||
an active connection to the database.
|
||||
no-interface-metadata: No metadata was found for managed interface {0}.
|
Loading…
Reference in New Issue