From 1bf4538ea9caaa2ef9130ebb5b2e18ffb23dd26e Mon Sep 17 00:00:00 2001 From: seonghyeok Date: Sun, 12 Oct 2025 22:30:42 +0900 Subject: [PATCH 1/3] =?UTF-8?q?refactor:=20Mentoring=20=EC=97=94=ED=8B=B0?= =?UTF-8?q?=ED=8B=B0=EA=B0=80=20BaseEntity=EB=A5=BC=20=EC=83=81=EC=86=8D?= =?UTF-8?q?=ED=95=A8=EC=97=90=20=EB=94=B0=EB=9D=BC=20createAt=20=ED=95=84?= =?UTF-8?q?=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/solidconnection/mentor/domain/Mentoring.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/java/com/example/solidconnection/mentor/domain/Mentoring.java b/src/main/java/com/example/solidconnection/mentor/domain/Mentoring.java index f1236800e..a839d8122 100644 --- a/src/main/java/com/example/solidconnection/mentor/domain/Mentoring.java +++ b/src/main/java/com/example/solidconnection/mentor/domain/Mentoring.java @@ -13,7 +13,6 @@ import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Id; -import jakarta.persistence.PrePersist; import java.time.ZonedDateTime; import lombok.AccessLevel; import lombok.AllArgsConstructor; @@ -34,9 +33,6 @@ public class Mentoring extends BaseEntity { @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; - @Column(nullable = false) - private ZonedDateTime createdAt; - @Column private ZonedDateTime confirmedAt; @@ -62,11 +58,6 @@ public Mentoring(long mentorId, long menteeId, VerifyStatus verifyStatus) { this.verifyStatus = verifyStatus; } - @PrePersist - public void onPrePersist() { - this.createdAt = ZonedDateTime.now(UTC).truncatedTo(MICROS); // 나노초 6자리 까지만 저장 - } - public void confirm(VerifyStatus status) { this.verifyStatus = status; this.confirmedAt = ZonedDateTime.now(UTC).truncatedTo(MICROS); From eaa8eb487cea2abd31512a212b8beca33546897e Mon Sep 17 00:00:00 2001 From: seonghyeok Date: Sun, 12 Oct 2025 23:20:28 +0900 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20BaseEntity=20=EA=B4=80=EB=A0=A8=20?= =?UTF-8?q?=EB=A1=A4=EB=B0=B1=20DDL=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V34__add_baseentity_related_fields.sql | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/resources/db/migration/V34__add_baseentity_related_fields.sql b/src/main/resources/db/migration/V34__add_baseentity_related_fields.sql index 0bed164b6..8ff6c6b6b 100644 --- a/src/main/resources/db/migration/V34__add_baseentity_related_fields.sql +++ b/src/main/resources/db/migration/V34__add_baseentity_related_fields.sql @@ -2,14 +2,6 @@ ALTER TABLE application ADD COLUMN created_at DATETIME(6), ADD COLUMN updated_at DATETIME(6); -ALTER TABLE gpa - ADD COLUMN created_at DATETIME(6), - ADD COLUMN updated_at DATETIME(6); - -ALTER TABLE language_test - ADD COLUMN created_at DATETIME(6), - ADD COLUMN updated_at DATETIME(6); - ALTER TABLE post_image ADD COLUMN created_at DATETIME(6), ADD COLUMN updated_at DATETIME(6); @@ -35,7 +27,6 @@ ALTER TABLE mentor ADD COLUMN updated_at DATETIME(6); ALTER TABLE mentoring - ADD COLUMN created_at DATETIME(6), ADD COLUMN updated_at DATETIME(6); ALTER TABLE liked_news From 5e5ce5d5fad8baad768dc00e0094dbc97348b8a4 Mon Sep 17 00:00:00 2001 From: seonghyeok Date: Mon, 13 Oct 2025 00:36:32 +0900 Subject: [PATCH 3/3] =?UTF-8?q?test:=20mentoring=20=ED=94=BD=EC=8A=A4?= =?UTF-8?q?=EC=B2=98=20=EC=83=9D=EC=84=B1=20=EC=8B=9C=20createdAt=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8F=84?= =?UTF-8?q?=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mentor/fixture/MentoringFixtureBuilder.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/test/java/com/example/solidconnection/mentor/fixture/MentoringFixtureBuilder.java b/src/test/java/com/example/solidconnection/mentor/fixture/MentoringFixtureBuilder.java index f4e905b3a..ffce89c54 100644 --- a/src/test/java/com/example/solidconnection/mentor/fixture/MentoringFixtureBuilder.java +++ b/src/test/java/com/example/solidconnection/mentor/fixture/MentoringFixtureBuilder.java @@ -25,11 +25,6 @@ public MentoringFixtureBuilder mentoring() { return new MentoringFixtureBuilder(mentoringRepository); } - public MentoringFixtureBuilder createdAt(ZonedDateTime createdAt) { - this.createdAt = createdAt; - return this; - } - public MentoringFixtureBuilder confirmedAt(ZonedDateTime confirmedAt) { this.confirmedAt = confirmedAt; return this; @@ -63,7 +58,6 @@ public MentoringFixtureBuilder menteeId(long menteeId) { public Mentoring create() { Mentoring mentoring = new Mentoring( null, - createdAt, confirmedAt, checkedAtByMentor, checkedAtByMentee,