Skip to content

Commit

Permalink
fix: findByStatusOrderedByStudent -> findByStatusOrderByStudent
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchandev committed Aug 20, 2024
1 parent 52b4359 commit 6debd50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface MemberRepository extends JpaRepository<Member, String> {
"WHERE m.status = :status " +
"ORDER BY CASE WHEN s.id IS NOT NULL THEN 0 ELSE 1 END ASC, " +
"s.grade ASC, s.room ASC, s.number ASC")
List<Member> findByStatusOrderedByStudent(ActiveStatus status);
List<Member> findByStatusOrderByStudent(ActiveStatus status);


List<Member> findByNameContains(String name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public List<Member> searchByName(String name) {
}

public List<Member> getByStatus(ActiveStatus status) {
return memberRepository.findByStatusOrderedByStudent(status);
return memberRepository.findByStatusOrderByStudent(status);
}

public Optional<Student> getStudentByMember(Member member) {
Expand Down

0 comments on commit 6debd50

Please sign in to comment.