syg6 wrote:
The only problem left is that when I create a new ObjectA and at the same
time associate AAndBJoin objects (as opposed to first saving a new ObjectA
and then editing it and associating AAndBJoin objects), the associated
AAndBObjects are saved in the database with idObjectA=null, thus they are
not properly associated.

If you were using xdoclet (which generates xml) instead of JPA I'd suggest you have insert="false" on the association, which tells Hibernate not to include that column in the row when inserting a new entry. Don't know how that translates to the JPA version. If that column were "not-null", though, you'd catch the problem earlier...

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to