diff --git a/jobis-infrastructure/src/main/java/team/retum/jobis/domain/application/persistence/ApplicationPersistenceAdapter.java b/jobis-infrastructure/src/main/java/team/retum/jobis/domain/application/persistence/ApplicationPersistenceAdapter.java index 92829b9e3..db0bd7745 100644 --- a/jobis-infrastructure/src/main/java/team/retum/jobis/domain/application/persistence/ApplicationPersistenceAdapter.java +++ b/jobis-infrastructure/src/main/java/team/retum/jobis/domain/application/persistence/ApplicationPersistenceAdapter.java @@ -230,8 +230,7 @@ public Optional queryApplicationByCompanyIdAndStudentId(Long compan queryFactory .selectFrom(applicationEntity) .join(applicationEntity.recruitment, recruitmentEntity) - .join(recruitmentEntity.company, companyEntity) - .on(companyEntity.id.eq(companyId)) + .on(recruitmentEntity.company.id.eq(companyId)) .where(applicationEntity.student.id.eq(studentId)) .fetchFirst() ).map(applicationMapper::toDomain);