From 4af04a6a30c4cb761f68afc33bdd30e7f11d8887 Mon Sep 17 00:00:00 2001 From: Ogu1208 Date: Fri, 19 Jul 2024 03:03:45 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20ABLY=20=ED=98=95=ED=83=9C=EC=9D=98=20?= =?UTF-8?q?=EC=98=B5=EC=85=98=20=EA=B5=AC=EC=A1=B0=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../clothstar/product/domain/Product.java | 7 ++- .../productLine/domain/GoodsOption.java | 29 +++++++++++ .../clothstar/productLine/domain/Option.java | 52 +++++++++++++++++++ .../productLine/domain/OptionGroup.java | 48 +++++++++++++++++ .../productLine/domain/ProductLine.java | 14 +++++ .../productLine/domain/type/Color.java | 6 +++ 6 files changed, 154 insertions(+), 2 deletions(-) create mode 100644 src/main/java/org/store/clothstar/productLine/domain/GoodsOption.java create mode 100644 src/main/java/org/store/clothstar/productLine/domain/Option.java create mode 100644 src/main/java/org/store/clothstar/productLine/domain/OptionGroup.java create mode 100644 src/main/java/org/store/clothstar/productLine/domain/type/Color.java diff --git a/src/main/java/org/store/clothstar/product/domain/Product.java b/src/main/java/org/store/clothstar/product/domain/Product.java index 156db787..bc8f84fc 100644 --- a/src/main/java/org/store/clothstar/product/domain/Product.java +++ b/src/main/java/org/store/clothstar/product/domain/Product.java @@ -7,9 +7,9 @@ import lombok.NoArgsConstructor; import org.hibernate.annotations.BatchSize; import org.store.clothstar.product.dto.request.UpdateProductRequest; -import org.store.clothstar.productLine.domain.ProductLine; +import org.store.clothstar.product.entity.ProductEntity; -@Entity +@Builder @Getter @NoArgsConstructor @AllArgsConstructor @@ -32,6 +32,9 @@ public class Product { private Long stock; + @OneToMany(mappedBy = "product", cascade = CascadeType.ALL) + private List