Skip to content

Commit

Permalink
[#256] fix(PerformanceImage): 테이블명과 겹치지 않게 공연이미지 변수명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonyworld committed Nov 30, 2024
1 parent 07ffbab commit 6b9a30e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@ public class PerformanceImage {
private Long id;

@Column(nullable = false)
private String performanceImage;
private String performanceImageUrl;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "performance_id", nullable = false)
private Performance performance;

@Builder
public PerformanceImage(String performanceImage, Performance performance) {
this.performanceImage = performanceImage;
private PerformanceImage(String performanceImageUrl, Performance performance) {
this.performanceImageUrl = performanceImageUrl;
this.performance = performance;
}

public static PerformanceImage create(String perforemanceImage, Performance performance) {
public static PerformanceImage create(String performanceImageUrl, Performance performance) {
return PerformanceImage.builder()
.performanceImage(perforemanceImage)
.performanceImageUrl(performanceImageUrl)
.performance(performance)
.build();
}

public void update(String performanceImage) {
this.performanceImage = performanceImage;
public void update(String performanceImageUrl) {
this.performanceImageUrl = performanceImageUrl;
}
}

0 comments on commit 6b9a30e

Please sign in to comment.