Skip to content

Commit

Permalink
[refactor] refactor entitiy code
Browse files Browse the repository at this point in the history
  • Loading branch information
PicturePark1101 committed Jul 12, 2024
1 parent e00d8c1 commit 5305039
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ private Favorite(User user, String name, String detail) {
this.detail = detail;
this.imageUrl = "default.com";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,4 @@ public class Store extends BaseTimeEntity {
@BatchSize(size = 100)
private List<StoreImage> storeImages = new ArrayList<>();

public String getImage() {

if (storeImages.isEmpty()) {
return "default.com";
}
return storeImages.get(0).getImage_url();
}

}

0 comments on commit 5305039

Please sign in to comment.