>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]
> 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, 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 still exists then no insert
> is made, but also not exception is thrown.
> Is there a way to find out if the insert was successful or not?
> regards
> Matthias Roth
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to