Re: OneToMany update issue

2009-04-12 Thread Stefan Zeller
Hi Paul, thanks for the fast help. Now the application is responsible for consistency and it works. Well, I should read the spec, some time. Greetings, Stefan Paul Copeland schrieb: Hi Stefan - I think your A.SetB(B) method must call B.add(A) From section 2.1.7 in JPA Specification - Note

OneToMany update issue

2009-04-11 Thread Stefan Zeller
Hello all, I've got a problem with the update of a manyToOne field which is mapped by another entity. I searched and tried out for the last week and I didn't had success, so I ask here. BTW, I'm new to JPA so maybe it's a conceptual problem. My test case is fairly simple. I've got to

Re: OneToMany update issue

2009-04-11 Thread Paul Copeland
Hi Stefan - I think your A.SetB(B) method must call B.add(A) From section 2.1.7 in JPA Specification - Note that it is the application that bears responsibility for maintaining the consistency of runtime relationships---for example, for insuring that the one and the many sides of a