0

JPA delegates validation to the Bean Validation implementation during pre-persist and pre-update entity life-cycle events. But, pre-remove events do not trigger validation unless enabled via validation group property in persistence.xml. Why?

user1418717
  • 425
  • 2
  • 5
  • 13

1 Answers1

0

I guess an entity does not need to be validated for default group once you decide to delete it. By specifying group for delete, validation will be executed.

eastwater
  • 4,624
  • 9
  • 49
  • 118