开发者

Preventing @Version From Reaching Maximum Value

开发者 https://www.devze.com 2023-03-17 22:40 出处:网络
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.

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...

0

精彩评论

暂无评论...
验证码 换一张
取 消