aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Product.java4
1 files changed, 3 insertions, 1 deletions
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 5211eaf..420a615 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
@@ -1,5 +1,7 @@
package ru.mrfoxygmfr.warehouse_accounting.db.models;
+import io.hypersistence.utils.hibernate.type.interval.PostgreSQLIntervalType;
+import org.hibernate.annotations.Type;
import jakarta.persistence.*;
import lombok.*;
@@ -42,7 +44,7 @@ public class Product {
private long depth;
@Column(nullable = true, name = "max_storage_duration", columnDefinition = "interval")
- @NonNull
+ @Type(PostgreSQLIntervalType.class)
private Duration maxStorageDuration;
}