Class PreDeleteEvent

    • Constructor Detail

      • PreDeleteEvent

        public PreDeleteEvent​(Object entity,
                              Object id,
                              Object[] deletedState,
                              EntityPersister persister,
                              EventSource source)
        Constructs an event containing the pertinent information.
        entity - The entity to be deleted.
        id - The id to use in the deletion.
        deletedState - The entity's state at deletion time.
        persister - The entity's persister.
        source - The session from which the event originated.
    • Method Detail

      • getDeletedState

        public Object[] getDeletedState()
        Getter for property 'deletedState'. This is the entity state at the time of deletion (useful for optimistic locking and such).
        Value for property 'deletedState'.