I'm new to JPA and Hibernate and I have a problem with optimistic locking. I have a class wich hase an @Version annotated field. When I update the Entity represented by this class, the version counter does not increase. Here is my code: The class:I'm new to JPA and Hibernate and I have a probl