Skip to content

Commit c65ad7c

Browse files
committed
fix: team leader join 방식 변경(left join)
1 parent 9220a76 commit c65ad7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/kotlin/gat_be/dev/domain/team/repository/TeamRepository.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface TeamRepository: JpaRepository<Team, Long> {
1818

1919
@Query("SELECT t " +
2020
"FROM Team t " +
21-
"JOIN FETCH t.leader " +
21+
"LEFT JOIN FETCH t.leader " +
2222
"JOIN FETCH t.techStackList " +
2323
"WHERE t.teamId IN :teamIdList"
2424
)
@@ -49,7 +49,7 @@ interface TeamRepository: JpaRepository<Team, Long> {
4949

5050
@Query("SELECT t " +
5151
"FROM Team t " +
52-
"JOIN FETCH t.leader " +
52+
"LEFT JOIN FETCH t.leader " +
5353
"JOIN FETCH t.techStackList tsl " +
5454
"WHERE t.teamId IN :teamIdList" )
5555
fun findByIdList(

0 commit comments

Comments
 (0)