Interface EntityEventContext<T>

    • Method Detail

      • getEntity

        T getEntity()
        The entity associated with the event.
      • setProperty

        <P> void setProperty​(io.micronaut.core.beans.BeanProperty<T,​P> property,
                             P newValue)
        Sets a property to its new value. If the property is immutable then the copy-constructor will be used and getEntity() will return the updated entity.
        Type Parameters:
        P - THe property type
        property - The property
        newValue - The new value
      • supportsEventSystem

        default boolean supportsEventSystem()
        Does the underlying persistence engine have its own event system.