Community
Participate
Working Groups
Build Identifier: 2.0.2.v20100323-r6872 and 2.1.0.v20100517-r7246 I have one-sided ManyToMany relation: @ManyToMany @JoinTable(name = "FOO_BAR") private Set<Foo> bars = new HashSet<Bar>(); Entities has equals and hashcode methods implemented. Adding a duplicate to the set works fine when weaving is not used. When weaving is used, a constraint violation is thrown from the DB because a duplicate mapping is tried to be inserted. I would think the behavior is correct when weaving is not used. However, my biggest concern is the inconsistent behavior dependent on the weaving. Reproducible: Always Steps to Reproduce: 1. enable weaving 2. add duplicate entity to one-sided manytomany relation (did not test with two-sided) 3. commit: constraint violation occurs
*** This bug has been marked as a duplicate of bug 325035 ***
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink