Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
edited tags
Link
dcernahoschi
  • 15.3k
  • 5
  • 40
  • 62
Source Link
Astronaut
  • 7.1k
  • 18
  • 65
  • 100

JPA Concurrent Transaction Strategies

I am working on a warehouse management system, using JPA 2.0 - EclipseLink and I have come across the need to implement concurrent transactions, currently I am implementing a timestamp difference to validate the last time the quantities are altered: added, removed, transferred.

This strategy seems a bit flawed, and requires a lot of manual verification's, that may create bugs, are there alternative methods of doing this that are provided by the JPA framework?