Java Spring CrudRepository Genere Insert en lugar de actualización
I have a @Version field in my entity. If there is a @Version field Spring Data will test that value to determine if the entity is new or not. If the @Version field is not a primitive and is null then the entity is considered new.
Obnoxious Osprey