From 44250cea9bffa00b385e14a85241dc23956a8ed5 Mon Sep 17 00:00:00 2001 From: unanchoi Date: Mon, 15 Jan 2024 00:55:04 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20=EC=A3=BC=EC=84=9D=20=EC=97=85?= =?UTF-8?q?=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../startlionserver/domain/entity/Application.java | 12 +++++++++++- .../domain/entity/GraduateInterviewContent.java | 4 ++-- .../startlionserver/domain/entity/Part.java | 5 +++-- .../startlionserver/global/enums/CustomCode.java | 2 ++ .../service/ApplicationQueryService.java | 3 --- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/startlion/startlionserver/domain/entity/Application.java b/src/main/java/com/startlion/startlionserver/domain/entity/Application.java index 9cea8d2..3e3ad15 100644 --- a/src/main/java/com/startlion/startlionserver/domain/entity/Application.java +++ b/src/main/java/com/startlion/startlionserver/domain/entity/Application.java @@ -10,7 +10,8 @@ import java.util.stream.Collectors; @Entity -@NoArgsConstructor(access = AccessLevel.PROTECTED) @Getter +@NoArgsConstructor(access = AccessLevel.PROTECTED) +@Getter public class Application extends BaseTimeEntity { private static final int DEFAULT_ANSWER_LIMIT = 700; @@ -20,6 +21,9 @@ public class Application extends BaseTimeEntity { @GeneratedValue(strategy = GenerationType.IDENTITY) private Long applicationId; + /* + 개인정보 이용 동의 여부 (필수) + */ private boolean isPersonalInformationAgreed; @ManyToOne(fetch = FetchType.LAZY) @@ -100,9 +104,15 @@ public class Application extends BaseTimeEntity { private String availableInterviewTime2; private String availableInterviewTime3; + /* + 알게 된 경로 (필수) + */ @Enumerated(EnumType.STRING) private PathType pathToKnow; + /* + 기타 선택했을 때, 알게 된 경로 + */ private String etcDetail; @Column(columnDefinition = "TEXT") diff --git a/src/main/java/com/startlion/startlionserver/domain/entity/GraduateInterviewContent.java b/src/main/java/com/startlion/startlionserver/domain/entity/GraduateInterviewContent.java index 5858f59..ee09073 100644 --- a/src/main/java/com/startlion/startlionserver/domain/entity/GraduateInterviewContent.java +++ b/src/main/java/com/startlion/startlionserver/domain/entity/GraduateInterviewContent.java @@ -18,10 +18,10 @@ public class GraduateInterviewContent { @JoinColumn(name = "interview_id") private GraduateInterview graduateInterview; - @Column(length = 400) + @Column(columnDefinition = "TEXT") private String question; - @Column(length = 400) + @Column(columnDefinition = "TEXT") private String answer; @Column diff --git a/src/main/java/com/startlion/startlionserver/domain/entity/Part.java b/src/main/java/com/startlion/startlionserver/domain/entity/Part.java index c3fcfaa..3b37998 100644 --- a/src/main/java/com/startlion/startlionserver/domain/entity/Part.java +++ b/src/main/java/com/startlion/startlionserver/domain/entity/Part.java @@ -15,14 +15,15 @@ public class Part { @Column(nullable = false) private Long partId; - // BE FE DESIGN PLAN + // BE FE DESIGN PM @Column(nullable = false) private String name; + // 백엔드 프론트엔드 디자인 기획 @Column(nullable = false) private String koreanName; - @Column(length = 200) + @Column(columnDefinition = "TEXT") private String partContent; @Column(length = 200) diff --git a/src/main/java/com/startlion/startlionserver/global/enums/CustomCode.java b/src/main/java/com/startlion/startlionserver/global/enums/CustomCode.java index dfae30b..a756d2a 100644 --- a/src/main/java/com/startlion/startlionserver/global/enums/CustomCode.java +++ b/src/main/java/com/startlion/startlionserver/global/enums/CustomCode.java @@ -1,5 +1,7 @@ package com.startlion.startlionserver.global.enums; + +// TODO: ENUM 변수 그대로가 아니라, name 변수를 사용하도록 변경 public enum CustomCode { SL_50000, SL_40000, diff --git a/src/main/java/com/startlion/startlionserver/service/ApplicationQueryService.java b/src/main/java/com/startlion/startlionserver/service/ApplicationQueryService.java index 1763d25..21bf5b2 100644 --- a/src/main/java/com/startlion/startlionserver/service/ApplicationQueryService.java +++ b/src/main/java/com/startlion/startlionserver/service/ApplicationQueryService.java @@ -21,9 +21,6 @@ @Transactional(readOnly = true) public class ApplicationQueryService { - private static final int FIRST_DAY_LAST_INTERVIEW_INDEX = 11; - private static final int SECOND_DAY_LAST_INTERVIEW_INDEX = 23; - private final ApplicationJpaRepository applicationJpaRepository; private final UserJpaRepository userJpaRepository; private final PartQuestionJpaRepository partQuestionJpaRepository;