diff options
author | mrfoxygmfr <mrfoxygmfr@sch9.ru> | 2025-03-17 12:58:57 +0300 |
---|---|---|
committer | mrfoxygmfr <mrfoxygmfr@sch9.ru> | 2025-03-17 12:58:57 +0300 |
commit | cad2254f0eaf770a169432296916a2acafe18b4a (patch) | |
tree | c433d43019b1988e1fa2a797439eae8381f24e9d /src/main/java | |
parent | c89e43daf441f245fc1ae114d0723e6e42c3f52a (diff) |
fix(db): remove enum dictionary tables
Diffstat (limited to 'src/main/java')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Operation.java b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Operation.java index 6409b55..72c2353 100644 --- a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Operation.java +++ b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Operation.java @@ -30,7 +30,7 @@ public class Operation { private OperationType type; @Column(nullable = false, name = "status") - @Enumerated(EnumType.ORDINAL) + @Enumerated(EnumType.STRING) @NonNull private OperationStatus status; 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 10da162..d2e31f0 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 @@ -21,7 +21,7 @@ public class Product { private int id; @Column(nullable = false, name = "type") - @Enumerated(EnumType.ORDINAL) + @Enumerated(EnumType.STRING) @NonNull private ProductType type; diff --git a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/ProductSlots.java b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/ProductSlots.java index 58fe4d9..7c24e5b 100644 --- a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/ProductSlots.java +++ b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/ProductSlots.java @@ -35,7 +35,7 @@ public class ProductSlots { private long amount; @Column(nullable = false, name = "status") - @Enumerated(EnumType.ORDINAL) + @Enumerated(EnumType.STRING) @NonNull private ProductStorageStatus status; |