Topic: Hibernate AND Optimistic Lock
Faced a problem: the Data is loaded in the table (Vaadin). Further they can be edited and saved. After the second saving the error falls: the field version does not coincide. It was clarified that after a call save at JpaRepository the new is returned!!! Object, at which correct version. It turns out that it is necessary to replace with this new object in the table old object? Somehow it is possible to get rid of it?