save(entity): 새로운 entity를 저장하거나 기존 entity를 업데이트합니다.
Read (조회)
findById(id): 주어진 ID로 entity를 조회합니다. getOne(id): 주어진 ID로 entity를 지연 로딩(lazy loading)합니다. findAll(): 모든 entity를 조회합니다 findAll(pageable): 페이징 처리된 entity 목록을 조회합니다. findAllById(iterable): 주어진 ID 목록으로 entity 목록을 조회합니다. existsById(id): 주어진 ID의 entity가 존재하는지 확인합니다.
Update (수정)
save(entity): 새로운 entity를 저장하거나 기존 entity를 업데이트합니다.
Delete (삭제)
deleteById(id): 주어진 ID의 entity를 삭제합니다. delete(entity): 주어진 entity를 삭제합니다. deleteAll(): 모든 entity를 삭제합니다. deleteAll(iterable): 주어진 entity 목록을 삭제합니다.
이 외 count(): 엔티티 개수를 반환합니다. flush(): 영속성 컨텍스트의 변경 내용을 데이터베이스에 즉시 반영합니다. clear(): 영속성 컨텍스트를 초기화합니다. withTransaction(Runnable): 트랜잭션 내에서 작업을 실행합니다.