1 package org.hibernate.type; 3 4 import java.util.Map ; 5 6 import org.hibernate.EntityMode; 7 import org.hibernate.HibernateException; 8 import org.hibernate.engine.SessionFactoryImplementor; 9 import org.hibernate.engine.SessionImplementor; 10 11 15 public abstract class ImmutableType extends NullableType { 16 17 public final Object deepCopy(Object value, EntityMode entityMode, SessionFactoryImplementor factory) { 18 return value; 19 } 20 21 public final boolean isMutable() { 22 return false; 23 } 24 25 public Object replace( 26 Object original, 27 Object target, 28 SessionImplementor session, 29 Object owner, 30 Map copyCache) 31 throws HibernateException { 32 return original; 33 } 34 35 36 } 37 | Popular Tags |