From 4be85ccd30ed668ed09c316e1e440cdebe29c451 Mon Sep 17 00:00:00 2001 From: Kangmin Date: Thu, 4 Jan 2024 08:31:27 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20::=20(#develop)=20JsonIgno?= =?UTF-8?q?re?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jobis/domain/company/persistence/entity/CompanyEntity.java | 1 + .../jobis/domain/student/persistence/entity/StudentEntity.java | 1 + .../jobis/domain/teacher/persistence/entity/TeacherEntity.java | 1 + 3 files changed, 3 insertions(+) diff --git a/jobis-infrastructure/src/main/java/team/retum/jobis/domain/company/persistence/entity/CompanyEntity.java b/jobis-infrastructure/src/main/java/team/retum/jobis/domain/company/persistence/entity/CompanyEntity.java index 2449debdc..d09abcb63 100644 --- a/jobis-infrastructure/src/main/java/team/retum/jobis/domain/company/persistence/entity/CompanyEntity.java +++ b/jobis-infrastructure/src/main/java/team/retum/jobis/domain/company/persistence/entity/CompanyEntity.java @@ -44,6 +44,7 @@ public class CompanyEntity { @Column(name = "company_id") private Long id; + @JsonIgnore @MapsId @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.MERGE) @JoinColumn(name = "company_id", nullable = false) diff --git a/jobis-infrastructure/src/main/java/team/retum/jobis/domain/student/persistence/entity/StudentEntity.java b/jobis-infrastructure/src/main/java/team/retum/jobis/domain/student/persistence/entity/StudentEntity.java index 6c38f8a96..777c4a87f 100644 --- a/jobis-infrastructure/src/main/java/team/retum/jobis/domain/student/persistence/entity/StudentEntity.java +++ b/jobis-infrastructure/src/main/java/team/retum/jobis/domain/student/persistence/entity/StudentEntity.java @@ -43,6 +43,7 @@ public class StudentEntity { @Column(name = "student_id") private Long id; + @JsonIgnore @MapsId @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.MERGE) @JoinColumn(name = "student_id", nullable = false) diff --git a/jobis-infrastructure/src/main/java/team/retum/jobis/domain/teacher/persistence/entity/TeacherEntity.java b/jobis-infrastructure/src/main/java/team/retum/jobis/domain/teacher/persistence/entity/TeacherEntity.java index cfe6d3588..834846de7 100644 --- a/jobis-infrastructure/src/main/java/team/retum/jobis/domain/teacher/persistence/entity/TeacherEntity.java +++ b/jobis-infrastructure/src/main/java/team/retum/jobis/domain/teacher/persistence/entity/TeacherEntity.java @@ -27,6 +27,7 @@ public class TeacherEntity { @Column(name = "teacher_id") private Long id; + @JsonIgnore @MapsId @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST) @JoinColumn(name = "teacher_id", nullable = false)