Skip to content

Commit

Permalink
Merge pull request #62 from mju-facilty-organization/dev
Browse files Browse the repository at this point in the history
[Refactor] nullable = false 제거, 빌더 패턴 매개변수 id 제거
  • Loading branch information
0702Yoon authored Feb 12, 2025
2 parents 1fe9bc2 + 4570511 commit 108f4a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public class Professor extends BaseTimeEntity {
private String email;

@Builder
public Professor(Long id, String name, AffiliationType affiliationType, String email) {
this.id = id;
public Professor(String name, AffiliationType affiliationType, String email) {
this.name = name;
this.affiliationType = affiliationType;
this.email = email;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class RentalHistory extends BaseTimeEntity {
private Facility facility;

@ManyToOne
@JoinColumn(name = "pic_id", nullable = false)
@JoinColumn(name = "pic_id")
private Pic pic;

@Builder
Expand Down

0 comments on commit 108f4a5

Please sign in to comment.