@Getter @Setter
public class ProjectCreateDTO {
private Project project;
private ProjectSkill projectSkill;
private RecruitInfo[] recruitInfo;
}
public class RecruitInfoService {
private final RecruitInfoRepository recruitInfoRepository;
@Transactional
public Long register(RecruitInfo[] recruitInfo){
for (int i=0; i<recruitInfo.length;i++){
recruitInfoRepository.save(recruitInfo[i]);
}
return recruitInfo[0].getId();
}
}
recruit_info 엔티티 저장할때 자동적으로 complet_count => 0으로 저장되게
FK 값 가져오는 방법 고민