cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jurgen" <do...@xsinet.co.za>
Subject Inserting object on FaultFailure: no matching row ?
Date Thu, 05 Sep 2013 09:33:43 GMT
If a user tries to commit an object that has been deleted in the DB (by another user) then
cayenne throws an exception.

If the desired recovery mode is that the object be inserted back into the DB, how would one
instruct Cayenne to do so now ?

I suppose setPersistanceState( NEW ) is not going to work ?

Should I then make a newObject and copy all the fields across or is there a "simpler more
elegant" way ?

Thanks.
#####################################################################################
DISCLAIMER: 
The information contained in this e-mail is the property of CTP Ltd and/or its associate companies
and is confidential and intended for the addressee only. 
If you are not the addressee and receive this e-mail by mistake, please notify the sender
and delete this email immediately as any disclosure, copying, 
distribution or use thereof may give rise to a claim against you. 
The sender and/or the CTP Group accept no liability for any damages caused by this email by
interception, interference, error, virus or other cause. 
Views and opinions expressed in this email are those of the sender unless clearly stated to
be those of a company in the CTP Group. 
The Company reserves the right to lawfully monitor e-mails.
 
#####################################################################################

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message