Skip to content

Commit

Permalink
feat: 초기화 멤버 변수 @Builder.Default 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
yo0oni committed Jan 10, 2024
1 parent 6dde38d commit cac02c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class MySchedules extends BaseEntity {
@JoinColumn(name = "user_id", nullable = false)
private Users users;

@Builder.Default
@OneToMany(mappedBy = "mySchedules", cascade = CascadeType.ALL, orphanRemoval = true)
private List<TravelPlaces> travelPlaces = new ArrayList<>();

Expand All @@ -45,6 +46,7 @@ public class MySchedules extends BaseEntity {
@Column(name = "total_price")
private double totalPrice ;

@Builder.Default
@Column(name = "activated", nullable = false)
private boolean activated = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class Users extends BaseEntity {
@Column(name = "login_type")
private String loginType ;

@Builder.Default
@Column(name = "activated", nullable = false)
private boolean activated = true;
}

0 comments on commit cac02c1

Please sign in to comment.