Hi,
The way RFW_RFC_CODE column is used at following two different context, it
leaves open a possibility of coding error.
@ManyToOne
@JoinColumn(name="RFW_RFC_CODE")
private ReferenzCode parent;
@Column(name = "RFW_RFC_CODE")
private String referenzCode;
For example,
ReferenzCode p = new ReferenzCode();
ReferenzWert c = new ReferenzWert();
p.code = "X";
p.referenzWerte.add(c);
c.parent = p;
c.referenzCode = "Y"
What is the expected value in the column REFERENZWERTE.RFW_RFC_CODE?
I will advise to remove the following declaration altogether
@Column(name = "RFW_RFC_CODE")
private String referenzCode;
--
View this message in context:
http://n2.nabble.com/%40OneToMany-%40ManyToOne-Weirdness-%28List-contains-non-matching-elements%29-tp2180688p2237293.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.