Well the question pretty much says everything. Using JPARepository how do I update an entity?
JPARepository has only a save method, which does not t
Using spring-data-jpa save(), I was having same problem as @DtechNet. I mean every save() was creating new object instead of update. To solve this I had to add version field to entity and related table.
save()
version