Class BeforeSaveEvent<E>

All Implemented Interfaces:
Serializable, RelationalEvent<E>, WithAggregateChange<E>, WithEntity<E>

public class BeforeSaveEvent<E> extends RelationalSaveEvent<E>
Gets published before an entity gets saved to the database.
Author:
Jens Schauder
See Also:
  • Constructor Details

    • BeforeSaveEvent

      public BeforeSaveEvent(E instance, AggregateChange<E> change)
      Parameters:
      instance - the entity about to get saved. Must not be null.
      change - the AggregateChange that is going to get applied to the database. Must not be null.