-----Messaggio originale-----
Da: Guido Beutler [mailto:[EMAIL PROTECTED]
Inviato: gioved� 6 marzo 2003 13.08
A: OJB Users List
Oggetto: Re: NEWBIE: cannot update object with ODMG
Hi,
----- Original Message -----
From: "Farnea Massimiliano" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 12:58 PM
Subject: NEWBIE: cannot update object with ODMG
> you got 2 transactions now. I think you need only one.
ok, u are right, but it doesn't seem to be the problem ... or the real
problem. It still does not update.
>At the tutorial page the OJB crew uses
>
> tx.lock(toBeEdited, Transaction.WRITE);
>
>for updating values.
I used both UPDATE and WRITE values ... with no success.
>
> toBeEdited = traente;
what's traente at that point?
traente is an object that contains the updated values of the object.
This is how my test app works:
1. I get a Traente object from the db (with another class) and put it in
'traente' attribute.
2. I set some object properties of traente attribute.
3. I call the method update that you know, in which the traente attribute is
used to update the db reference. I tried setting a single propery too.
Example: toBeEdited.setNome("new name");
> tx.commit();
cheers,
Guido
Thanks, massimiliano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]