Hibernate Tips: How to use a timestamp for versioning and optimistic locking

Hibernate Tips: How to use a timestamp for versioning and optimistic locking

Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question for a future Hibernate Tip, please leave a comment below. Question: My table model uses a timestamp instead of a numeric column for versioning. How can I use this column…