Skip to content

Commit

Permalink
Merge pull request #49 from endless-horses/fix#40-color-image
Browse files Browse the repository at this point in the history
fix: color속성에 imageUrl entity 생성 close #40
  • Loading branch information
SubiHwang authored Jan 31, 2024
2 parents adb4201 + c341da5 commit 73e4a2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ public class ColorListResponseDto {
private String name;
private String rgb;

private String imageUrl;

@Builder
public ColorListResponseDto(Color color) {
this.id = color.getId();
this.name = color.getName();
this.rgb = color.getRgb();
this.imageUrl = color.getImageUrl();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class Color {
private String name;
@Column(nullable = false)
private String rgb;
@Column(nullable = false)
private String imageUrl;

@OneToMany(mappedBy = "color") //읽기만 가능
private List<Result> results = new ArrayList<>();
Expand Down

0 comments on commit 73e4a2c

Please sign in to comment.