Class AbstractReassociateEventListener

    • Constructor Detail

      • AbstractReassociateEventListener

        public AbstractReassociateEventListener()
    • 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-association
        object - The entity to be associated
        id - The id of the entity.
        persister - The entity's persister instance.
        Returns:
        An EntityEntry representing the entity within this session.