cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <johnth...@gmail.com>
Subject Re: Getting failed object on OptimisticLockException for deleted objects
Date Fri, 07 Oct 2011 15:03:34 GMT
> I see that I can call OptimisticLockException.getFreshSnapshot to get
> information about the object that failed to save, but if the object was
> deleted in the DB, then this returns null.  In that case, how do I find out
> which object was the reason for the failure?
>

I'm also not sure how to get the failed object when it's not deleted - I
can't convert the fresh snapshot to a PersistentObject without knowing what
class / entity it is.

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