O'Reilly logo
  • Gangadhara Melukote thinks this is interesting:

  • javax.persistence.validation.group.pre-persist: Set the groups to validate at PrePersist time.
  • javax.persistence.validation.group.pre-update: Set the groups to validate at PreUpdate time.
  • javax.persistence.validation.group.pre-remove: Set the groups to validate at PreRemove time.
  • From

    Cover of Pro JPA 2, Second Edition

    Note

    Set validation at configuration for lifecycle events.