Skip to content

Commit

Permalink
⚙️ :: (#develop) JsonIgnore
Browse files Browse the repository at this point in the history
  • Loading branch information
alsdl0629 committed Jan 3, 2024
1 parent 53d6195 commit 4be85cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4be85cc

Please sign in to comment.