목록Repository (3)
코딩마을방범대

JPA가 제공하는 쿼리 메서드는 단순한 CRUD 기능이 가능하여 편리함을 제공하기는 하지만,복잡한 조건을 처리해야하는 경우에는 한계가 있다.이럴 때 사용하는 것이 @Query 어노테이션이다. JPA 쿼리 메서드의 정의는 아래 링크를 통해 확인 가능하다. JPA Query Methods :: Spring Data JPAAs of Spring Data JPA release 1.4, we support the usage of restricted SpEL template expressions in manually defined queries that are defined with @Query. Upon the query being run, these expressions are evaluated against..

Nexus를 이용해 Maven 라이브러리를 배포할 일이 생겼다. Nexus 서버만 구축했다면 배포하는 방법은 간단하다! 일단 기본적으로 pc 내에 메이븐이 설치되어있어야한다. Maven 설치하기 파일을 직접 다운로드 받아서 설치하기 1. maven 설치하기 아래 링크에서 apache-maven- ~ -bin.zip 파일을 다운로드 받아준다. 압축해제할 폴더 위치는 아무 곳이나 상관없지만, 나는 Program Files에 넣어줬다. Maven – Download Apache Maven Downloading Apache Maven 3.9.6 Apache Maven 3.9.6 is the latest release: it is the recommended version for all users. System ..
Repository를 이용해 Redis를 활용하는 예제 코드에 JpaRepository가 아닌 CrudRepository를 활용해서 도대체 CrudRepository는 뭔가.. 싶어서 찾아보았다! CrudRepository 애플리케이션에 필요한 모든 기본 쿼리 추상화를 제공하는 저장소 인터페이스 메소드 설명 save(…) 엔터티 의 Iterable 을 저장 ( 여러 개체를 전달하여 일괄적으로 저장할 수 있음 ) findOne(…) 전달된 기본 키 값을 기반으로 단일 엔터티 가져오기 findAll() 데이터베이스에서 사용 가능한 모든 엔터티 의 Iterable 가져오기 count() 테이블의 총 엔터티 수를 반환 delete(…) 전달된 개체를 기반으로 엔터티를 삭제 exists(…) 전달된 기본 키 값을..