Re: Problems saving a m:n relationship

2004-04-14 Thread Stijn de Witt
mysql's auto-increment with OJB? If so, what am I doing wrong? If not, what other approach might you suggest? Thanks for all your time, -Stijn - Original Message - From: Stijn de Witt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 09, 2004 1:32 PM Subject: Problems saving

Re: Problems saving a m:n relationship

2004-04-14 Thread Thomas Dudziak
On Wed, 14 Apr 2004, Stijn de Witt wrote: Now I see the insert for address passing an id, which looks wrong to me (since it is an auto-increment column), but it works ok. However, the generated id is never fetched from the database, so it is no wonder that the personId and addressId fields in

Re: Problems saving a m:n relationship

2004-04-14 Thread Armin Waibel
- Original Message - From: Stijn de Witt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 09, 2004 1:32 PM Subject: Problems saving a m:n relationship Hi, I have a problem trying to persist two objects that are related through an indirection table. This is what my tables look

Re: Problems saving a m:n relationship

2004-04-14 Thread Glenn Barnard
might you suggest? Thanks for all your time, -Stijn - Original Message - From: Stijn de Witt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 09, 2004 1:32 PM Subject: Problems saving a m:n relationship Hi, I have a problem trying to persist two objects that are related through

Re: Problems saving a m:n relationship

2004-04-14 Thread Stijn de Witt
. Thanks for your time! -Stijn P.S. To my understanding I should use the NativeImpl sequence manager for - Original Message - From: Glenn Barnard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 3:06 PM Subject: Re: Problems saving a m:n relationship Just a stab

Re: Problems saving a m:n relationship

2004-04-14 Thread Glenn Barnard
]; } } return null; } From: Stijn de Witt [EMAIL PROTECTED] Reply-To: OJB Users List [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Subject: Re: Problems saving a m:n relationship Date: Wed, 14 Apr 2004 15:52:35 +0200 Hi Glenn, Thanks for your message. I had just

Re: Problems saving a m:n relationship

2004-04-13 Thread Stijn de Witt
, -Stijn - Original Message - From: Armin Waibel [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Friday, April 09, 2004 2:00 PM Subject: Re: Problems saving a m:n relationship Hi Stijn, a few days ago I wrote some tests for M:N handling in odmg-api and stumble across

Problems saving a m:n relationship

2004-04-09 Thread Stijn de Witt
Hi, I have a problem trying to persist two objects that are related through an indirection table. This is what my tables look like: - PERSON id firstname lastname ... ADDRESS id street housenr ... PERSON_ADDRESS person_id address_id - I have chosen for this construction, because

Re: Problems saving a m:n relationship

2004-04-09 Thread Armin Waibel
Hi Stijn, a few days ago I wrote some tests for M:N handling in odmg-api and stumble across the same problem (hope we can fix this soon). There are two possible workarounds: Transaction tx = odmg.newTransaction(); tx.begin(); Iterator it = person.getAddresses().iterator(); while(it.hasNext())

Re: Problems saving a m:n relationship

2004-04-09 Thread Stijn de Witt
- Original Message - From: Armin Waibel [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Friday, April 09, 2004 2:00 PM Subject: Re: Problems saving a m:n relationship Hi Stijn, a few days ago I wrote some tests for M:N handling in odmg-api and stumble across the same