From bb3b42bf2da50663509e390855feb35bb69121dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F?= <Илья@WIN-RANNDDD> Date: Sat, 20 Apr 2024 13:59:17 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BE=D0=B3=D1=80=D0=B0=D0=BD=D0=B8=D1=87=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B4=D0=BB=D1=8F=20=D1=81=D1=82=D0=BE=D0=BB=D0=B1?= =?UTF-8?q?=D1=86=D0=B0=20count=20=D0=B2=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8?= =?UTF-8?q?=D1=86=D0=B5=20=D1=81=D0=B2=D1=8F=D0=B7=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/backend/ordersbooks/model/OrderBookEntity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/example/backend/ordersbooks/model/OrderBookEntity.java b/src/main/java/com/example/backend/ordersbooks/model/OrderBookEntity.java index 376856f..34df49c 100644 --- a/src/main/java/com/example/backend/ordersbooks/model/OrderBookEntity.java +++ b/src/main/java/com/example/backend/ordersbooks/model/OrderBookEntity.java @@ -5,6 +5,7 @@ import java.util.Objects; import com.example.backend.books.model.BookEntity; import com.example.backend.orders.model.OrderEntity; +import jakarta.persistence.Column; import jakarta.persistence.EmbeddedId; import jakarta.persistence.Entity; import jakarta.persistence.JoinColumn; @@ -25,6 +26,7 @@ public class OrderBookEntity { @MapsId("bookId") @JoinColumn(name = "book_id") private BookEntity book; + @Column(nullable = false) private Integer count; public OrderBookEntity() {