I am implementing OPTIMISTIC_FORCE_INCREMENT, as described here.
T开发者_如何学编程he main question is how to prevent the @version field from reaching its maximum value.
- Is there a way to handle this kind of exception?
- Is it possible to reset the @version field to 0 in case of exception?
- is it possible to work with sequences to prevent this situation in the first place?
Thanks,
Daniel
You can try using using versioning with a timeStamp. Its max value is still a long way from now...
精彩评论