Re: Getting failed object on OptimisticLockException for deleted objects

2011-10-10 Thread Andrus Adamchik
Quite possibly you are right :-) Personally not using optimistic locking that much myself, and didn't have time to dig the relevant code... Andrus On Oct 10, 2011, at 7:22 PM, John Huss wrote: > So based on the silence I'm going to assume that this functionality doesn't > currently exist and

Re: Getting failed object on OptimisticLockException for deleted objects

2011-10-10 Thread John Huss
So based on the silence I'm going to assume that this functionality doesn't currently exist and I'll see if I can work up a patch. John On Fri, Oct 7, 2011 at 10:03 AM, John Huss wrote: > > I see that I can call OptimisticLockException.getFreshSnapshot to get >> information about the object tha

Re: Getting failed object on OptimisticLockException for deleted objects

2011-10-07 Thread John Huss
> 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

Getting failed object on OptimisticLockException for deleted objects

2011-10-07 Thread John Huss
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? Thanks, John