aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrfoxygmfr <mrfoxygmfr@sch9.ru>2025-03-17 12:53:21 +0300
committermrfoxygmfr <mrfoxygmfr@sch9.ru>2025-03-17 12:53:21 +0300
commitc89e43daf441f245fc1ae114d0723e6e42c3f52a (patch)
tree89521e247e2a3258ec647764668e9a0e23df4f0e
parentaccfb4ee23b59b6f9f4bdaf0f91b88c79f4c5b3e (diff)
style(db/models): rename snake_case variables to camelCase
-rw-r--r--src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Operation.java6
-rw-r--r--src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Partner.java2
-rw-r--r--src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Product.java2
-rw-r--r--src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/ProductSlots.java2
4 files changed, 6 insertions, 6 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 01e082a..6409b55 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
@@ -36,15 +36,15 @@ public class Operation {
@Column(nullable = false, name = "date_created")
@NonNull
- private Timestamp date_created;
+ private Timestamp dateCreated;
@Column(nullable = false, name = "date_modified")
@NonNull
- private Timestamp date_modified;
+ private Timestamp dateModified;
@Column(nullable = false, name = "date_finished")
@NonNull
- private Timestamp date_finished;
+ private Timestamp dateFinished;
@Column(nullable = false, name = "address")
diff --git a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Partner.java b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Partner.java
index 6d1859d..f801c42 100644
--- a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Partner.java
+++ b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/models/Partner.java
@@ -23,7 +23,7 @@ public class Partner {
@Column(nullable = false, name = "tax_number")
@NonNull
- private String tax_number;
+ private String taxNumber;
@Column(nullable = false, name = "type")
@Enumerated(EnumType.STRING)
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 34b4c5a..10da162 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
@@ -39,6 +39,6 @@ public class Product {
@Column(nullable = true, name = "max_storage_duration", columnDefinition = "interval")
@NonNull
- private Duration max_storage_duration;
+ private Duration maxStorageDuration;
}
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 b3a19a1..58fe4d9 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
@@ -41,5 +41,5 @@ public class ProductSlots {
@Column(nullable = false, name = "placement_time")
@NonNull
- private Timestamp placement_time;
+ private Timestamp placementTime;
}