Let's log a stack trace on lazy initialization so that we can see who the
culprit is.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user