com.u2d.persist.type
Class EntityPersisterAdapter

java.lang.Object
  extended by com.u2d.persist.type.EntityPersisterAdapter
All Implemented Interfaces:
org.hibernate.persister.entity.EntityPersister
Direct Known Subclasses:
ComplexTypePersister

public abstract class EntityPersisterAdapter
extends java.lang.Object
implements org.hibernate.persister.entity.EntityPersister

The goal is to [again] study my single/working implementation of ComplexTypePersister and put the junk in this class so that i don't have to start from scratch each time.


Field Summary
protected static boolean[] GENERATION
           
protected static org.hibernate.id.IdentifierGenerator GENERATOR
           
protected static boolean[] INSERTABILITY
           
protected static boolean[] MUTABILITY
           
protected static int[] NATURALIDENTIFIERS
           
protected static org.hibernate.type.Type[] TYPES
           
 
Fields inherited from interface org.hibernate.persister.entity.EntityPersister
ENTITY_ID
 
Constructor Summary
EntityPersisterAdapter()
           
 
Method Summary
 void afterInitialize(java.lang.Object entity, boolean fetched, org.hibernate.engine.SessionImplementor session)
           
 void afterReassociate(java.lang.Object entity, org.hibernate.engine.SessionImplementor session)
           
 void applyFilters(org.hibernate.sql.QuerySelect select, java.lang.String alias, java.util.Map filters)
           
 void applyFilters(org.hibernate.sql.Select select, java.lang.String alias, java.util.Map filters)
           
protected  void checkEntityMode(org.hibernate.EntityMode entityMode)
           
 java.lang.Object createProxy(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
           
 void delete(java.io.Serializable id, java.lang.Object version, java.lang.Object object, org.hibernate.engine.SessionImplementor session)
           
 int[] findDirty(java.lang.Object[] x, java.lang.Object[] y, java.lang.Object owner, org.hibernate.engine.SessionImplementor session)
           
 int[] findModified(java.lang.Object[] x, java.lang.Object[] y, java.lang.Object owner, org.hibernate.engine.SessionImplementor session)
           
 org.hibernate.cache.CacheConcurrencyStrategy getCache()
           
 org.hibernate.cache.entry.CacheEntryStructure getCacheEntryStructure()
           
 org.hibernate.metadata.ClassMetadata getClassMetadata()
           
 java.lang.Class getConcreteProxyClass(org.hibernate.EntityMode entityMode)
           
 java.lang.Object[] getDatabaseSnapshot(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
           
 java.lang.String getEntityName()
           
 org.hibernate.id.IdentifierGenerator getIdentifierGenerator()
           
 org.hibernate.type.Type getIdentifierType()
           
abstract  java.lang.Class getMappedClass()
           
 int[] getNaturalIdentifierProperties()
           
 java.lang.Object[] getNaturalIdentifierSnapshot(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
           
 org.hibernate.type.Type[] getNaturalIdentifierTypes()
           
 org.hibernate.engine.CascadeStyle[] getPropertyCascadeStyles()
           
 boolean[] getPropertyCheckability()
           
 boolean[] getPropertyGeneration()
          Which of the properties of this class are database generated values?
 boolean[] getPropertyInsertability()
           
 boolean[] getPropertyInsertGeneration()
           
 boolean[] getPropertyLaziness()
           
 boolean[] getPropertyNullability()
           
 org.hibernate.type.Type getPropertyType(java.lang.String propertyName)
           
 org.hibernate.type.Type[] getPropertyTypes()
           
 boolean[] getPropertyUpdateability()
           
 boolean[] getPropertyUpdateGeneration()
           
 java.lang.Object getPropertyValue(java.lang.Object object, java.lang.String propertyName)
           
 java.lang.Object[] getPropertyValuesToInsert(java.lang.Object object, java.util.Map mergeMap, org.hibernate.engine.SessionImplementor session)
           
 boolean[] getPropertyVersionability()
           
 org.hibernate.persister.entity.EntityPersister getSubclassEntityPersister(java.lang.Object instance, org.hibernate.engine.SessionFactoryImplementor factory, org.hibernate.EntityMode entityMode)
           
 java.lang.Object getVersion(java.lang.Object object, org.hibernate.EntityMode entityMode)
           
 int getVersionProperty()
           
 org.hibernate.type.VersionType getVersionType()
           
 org.hibernate.EntityMode guessEntityMode(java.lang.Object object)
           
 boolean hasCache()
           
 boolean hasCascades()
           
 boolean hasCollections()
           
 boolean hasGeneratedProperties()
           
 boolean hasIdentifierProperty()
           
 boolean hasIdentifierPropertyOrEmbeddedCompositeIdentifier()
           
 boolean hasInsertGeneratedProperties()
           
 boolean hasLazyProperties()
           
 boolean hasMutableProperties()
           
 boolean hasNaturalIdentifier()
           
 boolean hasProxy()
           
 boolean hasSubselectLoadableCollections()
           
 boolean hasUninitializedLazyProperties(java.lang.Object object, org.hibernate.EntityMode entityMode)
           
 boolean hasUpdateGeneratedProperties()
           
 boolean implementsLifecycle(org.hibernate.EntityMode entityMode)
           
 boolean implementsValidatable(org.hibernate.EntityMode entityMode)
           
 java.io.Serializable insert(java.lang.Object[] fields, java.lang.Object object, org.hibernate.engine.SessionImplementor session)
           
 boolean isBatchLoadable()
           
 boolean isCacheInvalidationRequired()
           
 boolean isDynamic()
           
 boolean isIdentifierAssignedByInsert()
           
 boolean isInherited()
           
 boolean isInstrumented(org.hibernate.EntityMode entityMode)
           
 boolean isLazyPropertiesCacheable()
           
 boolean isMutable()
           
 boolean isSelectBeforeUpdateRequired()
           
 boolean isSubclassEntityName(java.lang.String entityName)
           
 java.lang.Boolean isTransient(java.lang.Object object, org.hibernate.engine.SessionImplementor session)
           
 boolean isVersioned()
           
 boolean isVersionPropertyGenerated()
           
 void lock(java.io.Serializable id, java.lang.Object version, java.lang.Object object, org.hibernate.LockMode lockMode, org.hibernate.engine.SessionImplementor session)
           
 void postInstantiate()
           
 void processInsertGeneratedProperties(java.io.Serializable id, java.lang.Object entity, java.lang.Object[] state, org.hibernate.engine.SessionImplementor session)
           
 void processUpdateGeneratedProperties(java.io.Serializable id, java.lang.Object entity, java.lang.Object[] state, org.hibernate.engine.SessionImplementor session)
           
 void resetIdentifier(java.lang.Object entity, java.io.Serializable currentId, java.lang.Object currentVersion, org.hibernate.EntityMode entityMode)
           
 void retrieveGeneratedProperties(java.io.Serializable id, java.lang.Object entity, java.lang.Object[] state, org.hibernate.engine.SessionImplementor session)
           
 void setIdentifier(java.lang.Object object, java.io.Serializable id, org.hibernate.EntityMode entityMode)
           
 void setPropertyValue(java.lang.Object object, int i, java.lang.Object value, org.hibernate.EntityMode entityMode)
           
 void setPropertyValues(java.lang.Object object, java.lang.Object[] values, org.hibernate.EntityMode entityMode)
           
 void update(java.io.Serializable id, java.lang.Object[] fields, int[] dirtyFields, boolean hasDirtyCollection, java.lang.Object[] oldFields, java.lang.Object oldVersion, java.lang.Object object, java.lang.Object rowId, org.hibernate.engine.SessionImplementor session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.persister.entity.EntityPersister
getCurrentVersion, getFactory, getIdentifier, getIdentifierPropertyName, getMappedClass, getPropertyNames, getPropertySpaces, getPropertyValue, getPropertyValue, getPropertyValues, getQuerySpaces, getRootEntityName, insert, instantiate, isInstance, load
 

Field Detail

TYPES

protected static final org.hibernate.type.Type[] TYPES

MUTABILITY

protected static final boolean[] MUTABILITY

GENERATION

protected static final boolean[] GENERATION

INSERTABILITY

protected static final boolean[] INSERTABILITY

NATURALIDENTIFIERS

protected static final int[] NATURALIDENTIFIERS

GENERATOR

protected static final org.hibernate.id.IdentifierGenerator GENERATOR
Constructor Detail

EntityPersisterAdapter

public EntityPersisterAdapter()
Method Detail

lock

public void lock(java.io.Serializable id,
                 java.lang.Object version,
                 java.lang.Object object,
                 org.hibernate.LockMode lockMode,
                 org.hibernate.engine.SessionImplementor session)
          throws org.hibernate.HibernateException
Specified by:
lock in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException
See Also:
EntityPersister.lock(java.io.Serializable, Object, Object, org.hibernate.LockMode, org.hibernate.engine.SessionImplementor)

hasInsertGeneratedProperties

public boolean hasInsertGeneratedProperties()
Specified by:
hasInsertGeneratedProperties in interface org.hibernate.persister.entity.EntityPersister

hasUpdateGeneratedProperties

public boolean hasUpdateGeneratedProperties()
Specified by:
hasUpdateGeneratedProperties in interface org.hibernate.persister.entity.EntityPersister

processInsertGeneratedProperties

public void processInsertGeneratedProperties(java.io.Serializable id,
                                             java.lang.Object entity,
                                             java.lang.Object[] state,
                                             org.hibernate.engine.SessionImplementor session)
Specified by:
processInsertGeneratedProperties in interface org.hibernate.persister.entity.EntityPersister

processUpdateGeneratedProperties

public void processUpdateGeneratedProperties(java.io.Serializable id,
                                             java.lang.Object entity,
                                             java.lang.Object[] state,
                                             org.hibernate.engine.SessionImplementor session)
Specified by:
processUpdateGeneratedProperties in interface org.hibernate.persister.entity.EntityPersister

getCacheEntryStructure

public org.hibernate.cache.entry.CacheEntryStructure getCacheEntryStructure()
Specified by:
getCacheEntryStructure in interface org.hibernate.persister.entity.EntityPersister

hasSubselectLoadableCollections

public boolean hasSubselectLoadableCollections()
Specified by:
hasSubselectLoadableCollections in interface org.hibernate.persister.entity.EntityPersister

hasMutableProperties

public boolean hasMutableProperties()
Specified by:
hasMutableProperties in interface org.hibernate.persister.entity.EntityPersister

isInstrumented

public boolean isInstrumented(org.hibernate.EntityMode entityMode)
Specified by:
isInstrumented in interface org.hibernate.persister.entity.EntityPersister

getPropertyLaziness

public boolean[] getPropertyLaziness()
Specified by:
getPropertyLaziness in interface org.hibernate.persister.entity.EntityPersister

isLazyPropertiesCacheable

public boolean isLazyPropertiesCacheable()
Specified by:
isLazyPropertiesCacheable in interface org.hibernate.persister.entity.EntityPersister

hasGeneratedProperties

public boolean hasGeneratedProperties()

isVersionPropertyGenerated

public boolean isVersionPropertyGenerated()
Specified by:
isVersionPropertyGenerated in interface org.hibernate.persister.entity.EntityPersister

hasLazyProperties

public boolean hasLazyProperties()
Specified by:
hasLazyProperties in interface org.hibernate.persister.entity.EntityPersister

checkEntityMode

protected void checkEntityMode(org.hibernate.EntityMode entityMode)

isInherited

public boolean isInherited()
Specified by:
isInherited in interface org.hibernate.persister.entity.EntityPersister

implementsLifecycle

public boolean implementsLifecycle(org.hibernate.EntityMode entityMode)
Specified by:
implementsLifecycle in interface org.hibernate.persister.entity.EntityPersister

implementsValidatable

public boolean implementsValidatable(org.hibernate.EntityMode entityMode)
Specified by:
implementsValidatable in interface org.hibernate.persister.entity.EntityPersister

getVersion

public java.lang.Object getVersion(java.lang.Object object,
                                   org.hibernate.EntityMode entityMode)
                            throws org.hibernate.HibernateException
Specified by:
getVersion in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException

hasUninitializedLazyProperties

public boolean hasUninitializedLazyProperties(java.lang.Object object,
                                              org.hibernate.EntityMode entityMode)
Specified by:
hasUninitializedLazyProperties in interface org.hibernate.persister.entity.EntityPersister

getSubclassEntityPersister

public org.hibernate.persister.entity.EntityPersister getSubclassEntityPersister(java.lang.Object instance,
                                                                                 org.hibernate.engine.SessionFactoryImplementor factory,
                                                                                 org.hibernate.EntityMode entityMode)
Specified by:
getSubclassEntityPersister in interface org.hibernate.persister.entity.EntityPersister

findModified

public int[] findModified(java.lang.Object[] x,
                          java.lang.Object[] y,
                          java.lang.Object owner,
                          org.hibernate.engine.SessionImplementor session)
                   throws org.hibernate.HibernateException
Specified by:
findModified in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException

hasIdentifierProperty

public boolean hasIdentifierProperty()
Specified by:
hasIdentifierProperty in interface org.hibernate.persister.entity.EntityPersister

isVersioned

public boolean isVersioned()
Specified by:
isVersioned in interface org.hibernate.persister.entity.EntityPersister

getVersionType

public org.hibernate.type.VersionType getVersionType()
Specified by:
getVersionType in interface org.hibernate.persister.entity.EntityPersister

getVersionProperty

public int getVersionProperty()
Specified by:
getVersionProperty in interface org.hibernate.persister.entity.EntityPersister

insert

public java.io.Serializable insert(java.lang.Object[] fields,
                                   java.lang.Object object,
                                   org.hibernate.engine.SessionImplementor session)
                            throws org.hibernate.HibernateException
Specified by:
insert in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException

delete

public void delete(java.io.Serializable id,
                   java.lang.Object version,
                   java.lang.Object object,
                   org.hibernate.engine.SessionImplementor session)
            throws org.hibernate.HibernateException
Specified by:
delete in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException

update

public void update(java.io.Serializable id,
                   java.lang.Object[] fields,
                   int[] dirtyFields,
                   boolean hasDirtyCollection,
                   java.lang.Object[] oldFields,
                   java.lang.Object oldVersion,
                   java.lang.Object object,
                   java.lang.Object rowId,
                   org.hibernate.engine.SessionImplementor session)
            throws org.hibernate.HibernateException
Specified by:
update in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException
See Also:
EntityPersister

getPropertyTypes

public org.hibernate.type.Type[] getPropertyTypes()
Specified by:
getPropertyTypes in interface org.hibernate.persister.entity.EntityPersister

getPropertyCascadeStyles

public org.hibernate.engine.CascadeStyle[] getPropertyCascadeStyles()
Specified by:
getPropertyCascadeStyles in interface org.hibernate.persister.entity.EntityPersister

getIdentifierType

public org.hibernate.type.Type getIdentifierType()
Specified by:
getIdentifierType in interface org.hibernate.persister.entity.EntityPersister

hasNaturalIdentifier

public boolean hasNaturalIdentifier()
Specified by:
hasNaturalIdentifier in interface org.hibernate.persister.entity.EntityPersister

getNaturalIdentifierTypes

public org.hibernate.type.Type[] getNaturalIdentifierTypes()

getNaturalIdentifierProperties

public int[] getNaturalIdentifierProperties()
Specified by:
getNaturalIdentifierProperties in interface org.hibernate.persister.entity.EntityPersister

getNaturalIdentifierSnapshot

public java.lang.Object[] getNaturalIdentifierSnapshot(java.io.Serializable id,
                                                       org.hibernate.engine.SessionImplementor session)
                                                throws org.hibernate.HibernateException
Specified by:
getNaturalIdentifierSnapshot in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException

hasCache

public boolean hasCache()
Specified by:
hasCache in interface org.hibernate.persister.entity.EntityPersister

getCache

public org.hibernate.cache.CacheConcurrencyStrategy getCache()
Specified by:
getCache in interface org.hibernate.persister.entity.EntityPersister

isDynamic

public boolean isDynamic()

isCacheInvalidationRequired

public boolean isCacheInvalidationRequired()
Specified by:
isCacheInvalidationRequired in interface org.hibernate.persister.entity.EntityPersister

applyFilters

public void applyFilters(org.hibernate.sql.QuerySelect select,
                         java.lang.String alias,
                         java.util.Map filters)

applyFilters

public void applyFilters(org.hibernate.sql.Select select,
                         java.lang.String alias,
                         java.util.Map filters)

afterInitialize

public void afterInitialize(java.lang.Object entity,
                            boolean fetched,
                            org.hibernate.engine.SessionImplementor session)
Specified by:
afterInitialize in interface org.hibernate.persister.entity.EntityPersister

afterReassociate

public void afterReassociate(java.lang.Object entity,
                             org.hibernate.engine.SessionImplementor session)
Specified by:
afterReassociate in interface org.hibernate.persister.entity.EntityPersister

getDatabaseSnapshot

public java.lang.Object[] getDatabaseSnapshot(java.io.Serializable id,
                                              org.hibernate.engine.SessionImplementor session)
                                       throws org.hibernate.HibernateException
Specified by:
getDatabaseSnapshot in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException

getPropertyVersionability

public boolean[] getPropertyVersionability()
Specified by:
getPropertyVersionability in interface org.hibernate.persister.entity.EntityPersister

getPropertyInsertGeneration

public boolean[] getPropertyInsertGeneration()
Specified by:
getPropertyInsertGeneration in interface org.hibernate.persister.entity.EntityPersister

getPropertyUpdateGeneration

public boolean[] getPropertyUpdateGeneration()
Specified by:
getPropertyUpdateGeneration in interface org.hibernate.persister.entity.EntityPersister

guessEntityMode

public org.hibernate.EntityMode guessEntityMode(java.lang.Object object)
Specified by:
guessEntityMode in interface org.hibernate.persister.entity.EntityPersister

getPropertyNullability

public boolean[] getPropertyNullability()
Specified by:
getPropertyNullability in interface org.hibernate.persister.entity.EntityPersister

getClassMetadata

public org.hibernate.metadata.ClassMetadata getClassMetadata()
Specified by:
getClassMetadata in interface org.hibernate.persister.entity.EntityPersister

getPropertyUpdateability

public boolean[] getPropertyUpdateability()
Specified by:
getPropertyUpdateability in interface org.hibernate.persister.entity.EntityPersister

getPropertyCheckability

public boolean[] getPropertyCheckability()
Specified by:
getPropertyCheckability in interface org.hibernate.persister.entity.EntityPersister

getPropertyInsertability

public boolean[] getPropertyInsertability()
Specified by:
getPropertyInsertability in interface org.hibernate.persister.entity.EntityPersister

getPropertyGeneration

public boolean[] getPropertyGeneration()
Which of the properties of this class are database generated values?


hasIdentifierPropertyOrEmbeddedCompositeIdentifier

public boolean hasIdentifierPropertyOrEmbeddedCompositeIdentifier()
Specified by:
hasIdentifierPropertyOrEmbeddedCompositeIdentifier in interface org.hibernate.persister.entity.EntityPersister

isBatchLoadable

public boolean isBatchLoadable()
Specified by:
isBatchLoadable in interface org.hibernate.persister.entity.EntityPersister

getPropertyType

public org.hibernate.type.Type getPropertyType(java.lang.String propertyName)
Specified by:
getPropertyType in interface org.hibernate.persister.entity.EntityPersister

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object object,
                                         java.lang.String propertyName)
                                  throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

createProxy

public java.lang.Object createProxy(java.io.Serializable id,
                                    org.hibernate.engine.SessionImplementor session)
                             throws org.hibernate.HibernateException
Specified by:
createProxy in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException

postInstantiate

public void postInstantiate()
                     throws org.hibernate.MappingException
Specified by:
postInstantiate in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.MappingException

hasProxy

public boolean hasProxy()
Specified by:
hasProxy in interface org.hibernate.persister.entity.EntityPersister

hasCollections

public boolean hasCollections()
Specified by:
hasCollections in interface org.hibernate.persister.entity.EntityPersister

hasCascades

public boolean hasCascades()
Specified by:
hasCascades in interface org.hibernate.persister.entity.EntityPersister

isMutable

public boolean isMutable()
Specified by:
isMutable in interface org.hibernate.persister.entity.EntityPersister

isSelectBeforeUpdateRequired

public boolean isSelectBeforeUpdateRequired()
Specified by:
isSelectBeforeUpdateRequired in interface org.hibernate.persister.entity.EntityPersister

isIdentifierAssignedByInsert

public boolean isIdentifierAssignedByInsert()
Specified by:
isIdentifierAssignedByInsert in interface org.hibernate.persister.entity.EntityPersister

isTransient

public java.lang.Boolean isTransient(java.lang.Object object,
                                     org.hibernate.engine.SessionImplementor session)
Specified by:
isTransient in interface org.hibernate.persister.entity.EntityPersister

setPropertyValues

public void setPropertyValues(java.lang.Object object,
                              java.lang.Object[] values,
                              org.hibernate.EntityMode entityMode)
                       throws org.hibernate.HibernateException
Specified by:
setPropertyValues in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException

findDirty

public int[] findDirty(java.lang.Object[] x,
                       java.lang.Object[] y,
                       java.lang.Object owner,
                       org.hibernate.engine.SessionImplementor session)
                throws org.hibernate.HibernateException
Specified by:
findDirty in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException

getIdentifierGenerator

public org.hibernate.id.IdentifierGenerator getIdentifierGenerator()
                                                            throws org.hibernate.HibernateException
Specified by:
getIdentifierGenerator in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException
See Also:
EntityPersister.getIdentifierGenerator()

getPropertyValuesToInsert

public java.lang.Object[] getPropertyValuesToInsert(java.lang.Object object,
                                                    java.util.Map mergeMap,
                                                    org.hibernate.engine.SessionImplementor session)
                                             throws org.hibernate.HibernateException
Specified by:
getPropertyValuesToInsert in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException

retrieveGeneratedProperties

public void retrieveGeneratedProperties(java.io.Serializable id,
                                        java.lang.Object entity,
                                        java.lang.Object[] state,
                                        org.hibernate.engine.SessionImplementor session)

getMappedClass

public abstract java.lang.Class getMappedClass()

getEntityName

public java.lang.String getEntityName()
Specified by:
getEntityName in interface org.hibernate.persister.entity.EntityPersister

isSubclassEntityName

public boolean isSubclassEntityName(java.lang.String entityName)
Specified by:
isSubclassEntityName in interface org.hibernate.persister.entity.EntityPersister

getConcreteProxyClass

public java.lang.Class getConcreteProxyClass(org.hibernate.EntityMode entityMode)
Specified by:
getConcreteProxyClass in interface org.hibernate.persister.entity.EntityPersister

resetIdentifier

public void resetIdentifier(java.lang.Object entity,
                            java.io.Serializable currentId,
                            java.lang.Object currentVersion,
                            org.hibernate.EntityMode entityMode)
Specified by:
resetIdentifier in interface org.hibernate.persister.entity.EntityPersister

setPropertyValue

public void setPropertyValue(java.lang.Object object,
                             int i,
                             java.lang.Object value,
                             org.hibernate.EntityMode entityMode)
                      throws org.hibernate.HibernateException
Specified by:
setPropertyValue in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException

setIdentifier

public void setIdentifier(java.lang.Object object,
                          java.io.Serializable id,
                          org.hibernate.EntityMode entityMode)
                   throws org.hibernate.HibernateException
Specified by:
setIdentifier in interface org.hibernate.persister.entity.EntityPersister
Throws:
org.hibernate.HibernateException