Skip to content

Commit

Permalink
Merge pull request #26 from Leets-Official/feat]-#21-프로젝트-소개-로직-개발
Browse files Browse the repository at this point in the history
[fix] 포트폴리오 삭제 오류 해결
  • Loading branch information
taeseokyang authored Feb 25, 2024
2 parents 9dbf21f + ffe3d84 commit 389e2f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.persistence.*;
import land.leets.domain.portfolio.domain.Portfolio;
import land.leets.domain.portfolio.domain.ProjectType;
import land.leets.domain.shared.BaseTimeEntity;
import lombok.*;

import java.time.LocalDate;

@Entity(name = "contributors")
@Builder
@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class Portfolio extends BaseTimeEntity {
@Column(nullable = false)
private LocalDate endDate;

@OneToMany(mappedBy = "portfolio", fetch = FetchType.EAGER)
@OneToMany(mappedBy = "portfolio", fetch = FetchType.EAGER, orphanRemoval = true)
@JsonIgnore
private List<Contributor> contributors = new ArrayList<>();

Expand Down

0 comments on commit 389e2f7

Please sign in to comment.