Make sure the record in question is not computed.

This commit is contained in:
Michael Bayne
2007-08-15 01:16:02 +00:00
parent ab8ee79dbe
commit a13756eec3
@@ -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(