Let's log a stack trace on lazy initialization so that we can see who the

culprit is.
This commit is contained in:
Michael Bayne
2008-09-10 18:01:24 +00:00
parent c4ddf1853c
commit 27b619d59b
@@ -227,7 +227,8 @@ public class PersistenceContext
// underlying persistent object
marshaller.init(this);
if (marshaller.getTableName() != null && _warnOnLazyInit) {
log.warning("Record initialized lazily [type=" + type.getName() + "].");
log.warning("Record initialized lazily", "type", type.getName(),
new Exception());
}
}
} catch (DatabaseException pe) {