From 5b0b6fc434659f13c0ff1f898c4b5d7ce136d992 Mon Sep 17 00:00:00 2001 From: mrfoxygmfr Date: Sun, 23 Mar 2025 14:48:27 +0300 Subject: fix(db): add forgotten name to product --- .../java/ru/mrfoxygmfr/warehouse_accounting/db/models/Product.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java') diff --git a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Product.java b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Product.java index d2e31f0..5211eaf 100644 --- a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Product.java +++ b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Product.java @@ -20,6 +20,10 @@ public class Product { @Column(nullable = false, name = "id") private int id; + @Column(nullable = false, name = "name") + @NonNull + private String name; + @Column(nullable = false, name = "type") @Enumerated(EnumType.STRING) @NonNull -- cgit mrf-deployment