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,
&
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
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
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
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
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