✔ 스프링 데이터 JPA가 사용하는 구현체

스프링 데이터 JPA가 제공하는 공통 인터페이스는 SimpleJpaRepository 클래스가 구현한다.

@Repository@Transactional(readOnly = true)public class SimpleJpaRepository<T, ID extends Serializable> implements JpaRepository<T, ID>, JpaSpecificationExecutor<T> {    @Transactional    public <S extends T> S save(S entity) {        if (entityInformation.isNew(entity)) {            em.persist(entity);            return entity;        } else {            return em.merge(entity);        }    }    ...}