I'm new to OJB. Here is the question, how to persist relationship collection. Is there a sequence I have to follow?
I have 2 tables A, B with M:N relationship. In the program, I load an instance a of A from DB. And create 2 new instances b1,b2 of B and add the relationship for both b1 and b2 to a. But it always overwrite the previous one with the last one. So in the indirection-table A_B, it only hold 1 record point to PK of b2. But if I create a new instance of A and join b1 and b2 to a, it will keep both. And I can find 2 records in A_B. I saw 1 line of delete the previous record in A_B during inserting the second b2 record when I tracing the OJB logs. Anybody can give some hints on this. More generally, how to operate relationship collections in OJB/ODMG, like if I have 2-way navigation from both side of the table, do I have to add on both side then call tx.commit or just do one side? thanks -- Henry Liu
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]