File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
src/main/java/com/back/domain Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public class Cocktail {
2222 private String cocktailName ;
2323
2424 @ Enumerated (EnumType .STRING )
25- private AlcoholStrength alcoholStrength ;
25+ private AlcoholStrength alcoholStrength ; // 칵테일 알콜 도수
2626
2727 public enum AlcoholStrength {
2828 NON_ALCOHOLIC ("논알콜 (0%)" ),
@@ -43,10 +43,10 @@ public String getDescription() {
4343 }
4444 }
4545
46- private String cocktailStory ;
46+ private String cocktailStory ; // 칵테일 유래 등 이야기
4747
4848 @ Enumerated (EnumType .STRING )
49- private CocktailType cocktailType ;
49+ private CocktailType cocktailType ; // 칵테일 컵에 따른 분류
5050
5151 public enum CocktailType {
5252 SHORT ("숏" ),
@@ -66,8 +66,12 @@ public String getDescription() {
6666 }
6767
6868 private String ingredient ;
69+
6970 private String recipe ;
71+
7072 private String imageUrl ;
73+
7174 private LocalDateTime createdAt ;
75+
7276 private LocalDateTime updatedAt ;
7377}
Original file line number Diff line number Diff line change 11package com .back .domain .wishlist .entity ;
22
3+ import com .back .domain .cocktail .entity .Cocktail ;
34import com .back .domain .user .entity .User ;
45import com .back .domain .wishlist .enums .WishlistStatus ;
56import jakarta .persistence .*;
@@ -25,8 +26,8 @@ public class Wishlist {
2526 private User user ; // 찜한 사용자 (위시리스트의 주인)
2627
2728// TODO: Cocktail 도메인 추가 후 활성화
28- // @ManyToOne
29- // private Cocktail cocktail;
29+ @ ManyToOne
30+ private Cocktail cocktail ;
3031
3132 @ Enumerated (EnumType .STRING )
3233 @ Column (nullable = false )
You can’t perform that action at this time.
0 commit comments