RE: What happens when an insert with ODMG fails?

2003-03-21 Thread Matthias . Roth
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

RE: What happens when an insert with ODMG fails?

2003-03-21 Thread Charles Anthony
: 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

RE : What happens when an insert with ODMG fails?

2003-03-20 Thread Emmanuel Dupont
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

RE: What happens when an insert with ODMG fails?

2003-03-20 Thread Mark Rijnbeek
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]

Re: What happens when an insert with ODMG fails?

2003-03-20 Thread Will Jaynes
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