Package org.hibernate.event.internal
Class AbstractReassociateEventListener
- java.lang.Object
-
- org.hibernate.event.internal.AbstractReassociateEventListener
-
- Direct Known Subclasses:
AbstractLockUpgradeEventListener
,AbstractSaveEventListener
public abstract class AbstractReassociateEventListener extends Object
A convenience base class for listeners that respond to requests to reassociate an entity to a session ( such as through lock() or update() ).
-
-
Constructor Summary
Constructors Constructor Description AbstractReassociateEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EntityEntry
reassociate(AbstractEvent event, Object object, Object id, EntityPersister persister)
Associates a given entity (either transient or associated with another session) to the given session.
-
-
-
Method Detail
-
reassociate
protected final EntityEntry reassociate(AbstractEvent event, Object object, Object id, EntityPersister persister)
Associates a given entity (either transient or associated with another session) to the given session.- Parameters:
event
- The event triggering the re-associationobject
- The entity to be associatedid
- The id of the entity.persister
- The entity's persister instance.- Returns:
- An EntityEntry representing the entity within this session.
-
-