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.
    • 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.
        property - the property to get the old state
        the old/previous state/value of the property