Skip to content

Commit

Permalink
ADD: User Entity에 대해 Spring Data JPA Custom Repository 구성 #4
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchaeeun3447 committed Jun 3, 2023
1 parent 5f39097 commit 67f09ba
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.mument.mument.core.user.repository;

import com.mument.mument.core.user.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Long>, UserRepositoryCustom {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.mument.mument.core.user.repository;

// QueryDSL 로 custom 해서 사용할 메소드 선언
public interface UserRepositoryCustom {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.mument.mument.core.user.repository;

import com.querydsl.jpa.impl.JPAQueryFactory;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class UserRepositoryImpl implements UserRepositoryCustom {

private final JPAQueryFactory queryFactory;
}

0 comments on commit 67f09ba

Please sign in to comment.