RE: What happens when an insert with ODMG fails?

2003-03-21 Thread Charles Anthony
my Object. > >Can help some body? > >regards Matthias > >-Original Message- >From: 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, &

RE: What happens when an insert with ODMG fails?

2003-03-21 Thread Matthias . Roth
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 in the database. So locki

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 obje

RE: What happens when an insert with ODMG fails?

2003-03-20 Thread Mark Rijnbeek
003 07:50 > To: [EMAIL PROTECTED] > Subject: What happens when an insert with ODMG fails? > > > Hi, > following question about storing a new object: > I have an Object with an attribute ID of type BigDecimal. > I write the Object with ODMG: > ... > tx.lock(myObject, Transac

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 O

What happens when an insert with ODMG fails?

2003-03-19 Thread Matthias . Roth
Hi, following question about storing a new object: I have an Object with an attribute ID of type BigDecimal. I write the Object with ODMG: ... tx.lock(myObject, Transaction.WRITE); tx.commit(); if I set the ID to a valid number the every thing works fine. if I set the ID to a number witch