Hi,

This issue https://github.com/jOOQ/jOOQ/issues/1995 is creating an issue 
for me which I am not sure how to work around.

My use case is.

1. I am using optimistic locking
2. I am storing a bunch of objects in a transaction.
3. An error occurs part way through - transaction rolled back
4. Error fixed, try saving again.
5. Get a DataChangedException

The issue is that record.original was updated, but then the data was rolled 
back.

I can't figure out a way how to store the record again, so the data is 
lost. Any ideas?

I preferred before #1995 was applied, then I could manually refresh the 
records at the end of the transaction. Then this had no issues. Is there a 
way to disable the updating of original values for optimistic locking?

Thanks, Ryan

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to