-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD: Mument Entity에 대해 Spring Data JPA Custom Repository 구성 #4
- Loading branch information
1 parent
67f09ba
commit decbbe0
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
mument/src/main/java/com/mument/mument/core/mument/repository/MumentRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.mument.mument.core.mument.repository; | ||
|
||
import com.mument.mument.core.mument.domain.Mument; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface MumentRepository extends JpaRepository<Mument, Long>, MumentRepositoryCustom { | ||
} |
4 changes: 4 additions & 0 deletions
4
mument/src/main/java/com/mument/mument/core/mument/repository/MumentRepositoryCustom.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.mument.mument.core.mument.repository; | ||
|
||
public interface MumentRepositoryCustom { | ||
} |
12 changes: 12 additions & 0 deletions
12
mument/src/main/java/com/mument/mument/core/mument/repository/MumentRepositoryImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.mument.mument.core.mument.repository; | ||
|
||
import com.querydsl.jpa.impl.JPAQueryFactory; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
@RequiredArgsConstructor | ||
public class MumentRepositoryImpl implements MumentRepositoryCustom { | ||
|
||
private final JPAQueryFactory queryFactory; | ||
} |