From a13756eec37dc0cf50ad042cc5905ce1cf08ecd2 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 15 Aug 2007 01:16:02 +0000 Subject: [PATCH] Make sure the record in question is not computed. --- src/java/com/samskivert/jdbc/depot/PersistenceContext.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/com/samskivert/jdbc/depot/PersistenceContext.java b/src/java/com/samskivert/jdbc/depot/PersistenceContext.java index f8e728e..3b910bb 100644 --- a/src/java/com/samskivert/jdbc/depot/PersistenceContext.java +++ b/src/java/com/samskivert/jdbc/depot/PersistenceContext.java @@ -222,12 +222,12 @@ public class PersistenceContext DepotMarshaller marshaller = getRawMarshaller(type); try { 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 // underlying persistent object marshaller.init(this); + if (marshaller.getTableName() != null && _warnOnLazyInit) { + log.warning("Record initialized lazily [type=" + type.getName() + "]."); + } } } catch (PersistenceException pe) { throw (PersistenceException)new PersistenceException(