开发者

Preventing @Version From Reaching 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜