org.springframework.data.jpa.repository.support.SimpleJpaRepository
식별자가 객체일때(Integer, Long...) null
로 판단한다.
식별자가 자바 기본타입(Primitive type : int, long...)일 때 0
으로 판단한다.
Persistable
인터페이스를 구현해서 판단 로직 변경도 가능하다.
package org.springframework.data.domain;
public interface Persistable<ID> {
ID getId();
boolean isNew();
}