1 package org.hibernate.intercept; 3 4 import java.io.Serializable ; 5 6 import org.hibernate.HibernateException; 7 import org.hibernate.engine.SessionImplementor; 8 9 12 public interface LazyPropertyInitializer { 13 14 17 public static final Serializable UNFETCHED_PROPERTY = new Serializable () { 18 public String toString() { return "<lazy>"; } 19 public Object readResolve() { 20 return UNFETCHED_PROPERTY; 21 } 22 }; 23 24 27 public Object initializeLazyProperty(String fieldName, Object entity, SessionImplementor session) 28 throws HibernateException; 29 30 } 31 | Popular Tags |