Java Spring Crudrepository Gere inserção em vez de atualizar
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