Skip to content

Commit

Permalink
[Fix] Chapter에서 Quiz를 조회할때 오름차순으로 가져오도록 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
NARUBROWN committed Nov 29, 2024
1 parent 887b9a1 commit b868c17
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class Chapter {
@OneToMany(mappedBy = "chapter", cascade = CascadeType.REMOVE)
private List<IsChapterCleared> isChapterClearedList;

@OrderBy("id ASC")
@OneToMany(mappedBy = "chapter", cascade = CascadeType.REMOVE)
private List<Quiz> quizzes = new ArrayList<>();

Expand Down

0 comments on commit b868c17

Please sign in to comment.