update on an entity with a {{ javax.validation.constraints.NotNull }} constraint on a {{ ManyToMany }} relation causes an {{ AssertionFailure }} if the relatated entity also contains a {{ ManyToMany }} relation to a third entity and all relations have the fetchtype lazy.
Here is the given entity structure: {code} @Entity class A { String textA;
@NotNull @ManyToMany Set<B> b; } {code}
{code} @Entity class B { String textB;
@NotNull @ManyToMany Set<C> b; } {code}
{code} @Entity class A { String textC; }
{code}
this pseudocode causes the error: {code} startTransaction A myA = find(A.class,1); myA.setText("newText"); commit
{code}
See the attached testcase for more details
|