Class EntityUpdateEvent


  • public class EntityUpdateEvent
    extends EntityPersistenceEvent
    The event object send out when an entity gets updated. To receive this event, create a class with a method which has this signature: public void onEvent(@Observes EntityUpdateEvent event) { Note, the method name is unimportant, the @Observes EntityUpdateEvent specifies that this method will be called before persisting a new instance.
    Author:
    mtaal
    • Constructor Detail

      • EntityUpdateEvent

        public EntityUpdateEvent()
    • Method Detail

      • getPreviousState

        public Object getPreviousState​(Property property)
        Returns the state of a property which was there when reading from the database.
        Parameters:
        property - the property to get the old state
        Returns:
        the old/previous state/value of the property