Module jakarta.data

Class PreUpsertEvent<E>

java.lang.Object
jakarta.data.event.LifecycleEvent<E>
jakarta.data.event.PreUpsertEvent<E>
Type Parameters:
E - the entity type

public class PreUpsertEvent<E> extends LifecycleEvent<E>
An event that occurs when a Save lifecycle method is called, but before each entity is inserted or updated in the datastore. This event usually indicates that the repository method implementation is unaware of whether the operation to be performed is an insert or an update.
  • Constructor Details

    • PreUpsertEvent

      public PreUpsertEvent(E entity)