org.hibernate.event.def
Class AbstractReassociateEventListener
java.lang.Object
org.hibernate.event.def.AbstractReassociateEventListener
- Serializable
public class AbstractReassociateEventListener
extends java.lang.Object
implements Serializable
A convenience base class for listeners that respond to requests to reassociate an entity
to a session ( such as through lock() or update() ).
reassociate
protected final EntityEntry reassociate(AbstractEvent event,
Object object,
Serializable id,
EntityPersister persister)
Associates a given entity (either transient or associated with another session) to
the given session.
event
- The event triggering the re-associationobject
- The entity to be associatedid
- The id of the entity.persister
- The entity's persister instance.
- An EntityEntry representing the entity within this session.