Skip to content

Commit

Permalink
fix: @Bulder.Default 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
h-ye-ryoung committed Aug 2, 2024
1 parent b40e07a commit a6aa188
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class ShareGroup extends BaseTimeEntity {
@Column(name = "invite_code", nullable = false)
private String inviteCode;
@OneToMany(mappedBy = "shareGroup")
@Builder.Default
private List<Profile> profiles = new ArrayList<>();

public void delete() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ public ShareGroup deleteShareGroup(Long shareGroupId, Member member) {

// 공유그룹 삭제 처리
shareGroup.delete();
shareGroupRepository.save(shareGroup);

return shareGroup;
}

Expand Down

0 comments on commit a6aa188

Please sign in to comment.