repositoryQuery1 JPA_Repository Query 안녕하세요 오늘은 JPA Repository Query에 대해서 작성해보려 합니다. JpaRepository 사용 방법입니다. Entity클래스 명 + Repository로 인터페이스 생성 후 JpaRepository를 상속 → JpaRepository를 상속받으면 구현체인 SimpleJpaRepository가 생성되어 상속받은 모든 메서드들을 사용할 수 있게 됩니다. public interface MemberRepository extends JpaRepository { } - 간단한 쿼리일 경우 사용하는 쿼리메서드에 대해 살펴보겠습니다. 조회 : find…By, read…By, query…By, get…By ex) findHelloBy처럼 …에 식별하기 위한 내용(설명)이 들어가도 되며, 메서드 이름으.. 2024. 4. 2. 이전 1 다음