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?
Asked
Active
Viewed 37 times
1 Answers
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