From f46aa2df5b509adc62c43b15518bb37673a977cf Mon Sep 17 00:00:00 2001 From: JangYeongHu Date: Tue, 10 Feb 2026 16:30:21 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20data.sql=20=EA=B5=AC=EB=AC=B8=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aics-api/src/main/resources/db/data.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aics-api/src/main/resources/db/data.sql b/aics-api/src/main/resources/db/data.sql index b18d980c..4823ece4 100644 --- a/aics-api/src/main/resources/db/data.sql +++ b/aics-api/src/main/resources/db/data.sql @@ -135,11 +135,11 @@ VALUES ('참여 신청 방법을 자세히 알고 싶습니다.', '2025-03-03 00 INSERT INTO graduation_user (name, email, advisor_professor, graduation_type, graduation_date, capstone_completion, department, mid_thesis_id, final_thesis_id, certificate_id, user_id, created_at, updated_at) VALUES - ('김철수', 'chulsoo@kyonggi.ac.kr', '이순신', 'THESIS', '2028-02-01', true,"컴퓨터공학전공", 1, 2, NULL, '202512345', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), - ('이영희', 'younghee@kyonggi.ac.kr', '홍길동', 'CERTIFICATE', '2028-08-01',true, "인공지능전공", NULL, NULL, 1, '202512346', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), - ('박민수', 'minsu@kyonggi.ac.kr', '정약용', 'THESIS', '2029-02-01', true, "컴퓨터공학전공", 3, NULL, NULL, '202512347', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), - ('정수진', 'sujin@kyonggi.ac.kr', '김이박', 'THESIS', '2030-02-01', false,"컴퓨터공학전공", 4, 5, NULL, '202512349', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), - ('최동욱', 'dongwook@kyonggi.ac.kr', '이교수', 'CERTIFICATE', '2027-08-01', false,"SW안전보안전공", NULL, NULL, 2, '202512348', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP); + ('김철수', 'chulsoo@kyonggi.ac.kr', '이순신', 'THESIS', '2028-02-01', true,'컴퓨터공학전공', 1, 2, NULL, '202512345', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + ('이영희', 'younghee@kyonggi.ac.kr', '홍길동', 'CERTIFICATE', '2028-08-01',true, '인공지능전공', NULL, NULL, 1, '202512346', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + ('박민수', 'minsu@kyonggi.ac.kr', '정약용', 'THESIS', '2029-02-01', true, '컴퓨터공학전공', 3, NULL, NULL, '202512347', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + ('정수진', 'sujin@kyonggi.ac.kr', '김이박', 'THESIS', '2030-02-01', false,'컴퓨터공학전공', 4, 5, NULL, '202512349', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + ('최동욱', 'dongwook@kyonggi.ac.kr', '이교수', 'CERTIFICATE', '2027-08-01', false,'SW안전보안전공', NULL, NULL, 2, '202512348', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP); -- schedule INSERT INTO schedule (submission_type, content, start_date, end_date, created_at, updated_at) From 774d9babac1f553dcd109c7d9b32fd741fb764d2 Mon Sep 17 00:00:00 2001 From: JangYeongHu Date: Tue, 10 Feb 2026 16:55:13 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20JPA=20=EC=97=94=ED=8B=B0=ED=8B=B0?= =?UTF-8?q?=EC=9D=98=20email=20,=20advisorProffessor,=20graduationType?= =?UTF-8?q?=EC=9D=B4=20null=EC=9D=84=20=EB=84=A3=EC=9D=84=20=EC=88=98=20?= =?UTF-8?q?=EC=9E=88=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/GraduationUserJpaEntity.java | 7 ++++--- .../java/kgu/developers/domain/post/domain/Post.java | 11 ++--------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/aics-domain/src/main/java/kgu/developers/domain/graduationUser/infrastructure/entity/GraduationUserJpaEntity.java b/aics-domain/src/main/java/kgu/developers/domain/graduationUser/infrastructure/entity/GraduationUserJpaEntity.java index 2dcdb86a..c6df7d08 100644 --- a/aics-domain/src/main/java/kgu/developers/domain/graduationUser/infrastructure/entity/GraduationUserJpaEntity.java +++ b/aics-domain/src/main/java/kgu/developers/domain/graduationUser/infrastructure/entity/GraduationUserJpaEntity.java @@ -36,14 +36,14 @@ public class GraduationUserJpaEntity extends BaseTimeEntity { @Column(nullable = false, length = 10) private String name; - @Column(unique = true, nullable = false, length = 50) + @Column(length = 50, unique = true) private String email; - @Column(nullable = true, length = 20) + @Column(length = 20) private String advisorProfessor; - @Column(nullable = false) @Enumerated(STRING) + @Column(length = 20) private GraduationType graduationType; private LocalDate graduationDate; @@ -58,6 +58,7 @@ public class GraduationUserJpaEntity extends BaseTimeEntity { private Long certificateId; + @Column(length = 10) private String userId; public static GraduationUserJpaEntity toEntity(GraduationUser graduationUser) { diff --git a/aics-domain/src/main/java/kgu/developers/domain/post/domain/Post.java b/aics-domain/src/main/java/kgu/developers/domain/post/domain/Post.java index ed9ca7a6..9680baad 100644 --- a/aics-domain/src/main/java/kgu/developers/domain/post/domain/Post.java +++ b/aics-domain/src/main/java/kgu/developers/domain/post/domain/Post.java @@ -1,7 +1,5 @@ package kgu.developers.domain.post.domain; -import static lombok.AccessLevel.PROTECTED; - import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; @@ -9,6 +7,8 @@ import java.time.LocalDateTime; +import static lombok.AccessLevel.PROTECTED; + @Getter @Builder @AllArgsConstructor @@ -16,19 +16,12 @@ public class Post { private Long id; - private String title; - private String content; - private int views; - private Category category; - private String authorId; - private boolean isPinned; - private Long fileId; protected LocalDateTime createdAt;