Make sure the record in question is not computed.
This commit is contained in:
@@ -222,12 +222,12 @@ public class PersistenceContext
|
|||||||
DepotMarshaller<T> marshaller = getRawMarshaller(type);
|
DepotMarshaller<T> marshaller = getRawMarshaller(type);
|
||||||
try {
|
try {
|
||||||
if (!marshaller.isInitialized()) {
|
if (!marshaller.isInitialized()) {
|
||||||
if (_warnOnLazyInit) {
|
|
||||||
log.warning("Record being initialized lazily [type=" + type.getName() + "].");
|
|
||||||
}
|
|
||||||
// initialize the marshaller which may create or migrate the table for its
|
// initialize the marshaller which may create or migrate the table for its
|
||||||
// underlying persistent object
|
// underlying persistent object
|
||||||
marshaller.init(this);
|
marshaller.init(this);
|
||||||
|
if (marshaller.getTableName() != null && _warnOnLazyInit) {
|
||||||
|
log.warning("Record initialized lazily [type=" + type.getName() + "].");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (PersistenceException pe) {
|
} catch (PersistenceException pe) {
|
||||||
throw (PersistenceException)new PersistenceException(
|
throw (PersistenceException)new PersistenceException(
|
||||||
|
|||||||
Reference in New Issue
Block a user