You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Emmanuel Dupont <em...@jwaretechnologies.com> on 2003/03/20 10:33:57 UTC

RE : What happens when an insert with ODMG fails?

I have the same problem.

Any help ?


-----Message d'origine-----
De : Matthias.Roth@BIT.admin.ch [mailto:Matthias.Roth@BIT.admin.ch] 
Envoyé : jeudi 20 mars 2003 08:50
À : ojb-user@db.apache.org
Objet : 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: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org