PROTECTED]
Sent: Donnerstag, 20. Marz 2003 13:11
To: OJB Users List
Subject: Re: What happens when an insert with ODMG fails?
Matthias,
If an object has an ID that is set (not null or zero) then ODMG
considers it to be an existing, persisted object that is already in the
database. So locking
: Will Jaynes [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 20. Marz 2003 13:11
To: OJB Users List
Subject: Re: What happens when an insert with ODMG fails?
Matthias,
If an object has an ID that is set (not null or zero) then ODMG
considers it to be an existing, persisted object that is
already
I have the same problem.
Any help ?
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 20 mars 2003 08:50
À : [EMAIL PROTECTED]
Objet : What happens when an insert with ODMG fails?
Hi,
following question about storing a new object:
I have an Object
From what I've seen, the insert is replaced with an update. Can't say I was
expecting that..
You could check if that happens in your case as well.
regards,
Mark.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 20 March 2003 07:50
To: [EMAIL PROTECTED]
Matthias,
If an object has an ID that is set (not null or zero) then ODMG
considers it to be an existing, persisted object that is already in the
database. So locking it for write will result in an update, not an
insert. In general, you shouldn't be setting the id. If you want an
existing