You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Configuration과 @Bean을 통해 JPAQueryFactory를 스프링 빈으로 등록시켜 사용하였다.
제목, 작성자, 내용 중 선택하여 검색할 수 있다.
현재 Spring Data JPA와 함께 사용하므로 BoardRepositoryCustom이라는 인터페이스를 만들고 그 구현체인 BoardRepositoryImpl에 Querydsl을 사용하여 동적쿼리 기능을 구현하고 BoardRepository에서 JpaRepository와 함께 상속 받아 사용한다.
가장 핵심 기능이라고 볼 수 있을 것이다.
Querydsl
을 사용하여 동적 쿼리를 구현하였다.@Configuration
과@Bean
을 통해JPAQueryFactory
를 스프링 빈으로 등록시켜 사용하였다.현재

Spring Data JPA
와 함께 사용하므로BoardRepositoryCustom
이라는 인터페이스를 만들고 그 구현체인BoardRepositoryImpl
에Querydsl
을 사용하여 동적쿼리 기능을 구현하고BoardRepository
에서JpaRepository
와 함께 상속 받아 사용한다.나의 블로그에 자세히 설명을 해놓았으므로 블로그 링크를 첨부한다.
블로그
The text was updated successfully, but these errors were encountered: