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
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
- 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
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
. 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
];
}
}
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
,
-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
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
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())
- 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
10 matches
Mail list logo