-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51744d3
commit 8e312c0
Showing
6 changed files
with
1 addition
and
247 deletions.
There are no files selected for viewing
86 changes: 0 additions & 86 deletions
86
src/main/java/com/t3t/bookstoreapi/member/controller/MemberGradeController.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
src/main/java/com/t3t/bookstoreapi/member/model/dto/MemberGradeDto.java
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/main/java/com/t3t/bookstoreapi/member/model/request/MemberGradeCreationRequest.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
src/main/java/com/t3t/bookstoreapi/member/model/response/MemberGradeResponse.java
This file was deleted.
Oops, something went wrong.
11 changes: 1 addition & 10 deletions
11
src/main/java/com/t3t/bookstoreapi/member/repository/MemberGradeRepository.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 |
---|---|---|
@@ -1,19 +1,10 @@ | ||
package com.t3t.bookstoreapi.member.repository; | ||
|
||
import com.t3t.bookstoreapi.member.model.entity.MemberGrade; | ||
import com.t3t.bookstoreapi.member.model.entity.MemberGradePolicy; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface MemberGradeRepository extends JpaRepository<MemberGrade, Integer> { | ||
Optional<MemberGrade> findByName(String name); | ||
|
||
@Query("SELECT m.policy FROM MemberGrade m JOIN FETCH MemberGradePolicy mg WHERE m.policy.policyId = mg.policyId") | ||
List<MemberGrade> findAll(); | ||
|
||
@Query("SELECT m.policy FROM MemberGrade m JOIN FETCH MemberGradePolicy mg WHERE m.policy.policyId = mg.policyId") | ||
Optional<MemberGrade> findByPolicyId(Long policyId); | ||
} | ||
} |
89 changes: 0 additions & 89 deletions
89
src/main/java/com/t3t/bookstoreapi/member/service/MemberGradeService.java
This file was deleted.
Oops, something went wrong.