Because Validator is a PrePersist Merge operation throws a ConstraintValidationException on non-empty list marked as when using @OneToMany & @NotNull "null" is always passed to the validator during a merge operation, even when the collection is non-empty, causing this operation to fail with C.V.E.
For more details see: https://bugzilla.redhat.com/show_bug.cgi?id=1245082
|