jpa에서 제공하는 crud 메서드 관련.
Create (저장)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 (삭제)..
카테고리 없음
2024. 5. 7. 22:38