aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrfoxygmfr <mrfoxygmfr@sch9.ru>2025-03-23 14:51:25 +0300
committermrfoxygmfr <mrfoxygmfr@sch9.ru>2025-03-23 14:51:25 +0300
commit3e20ffe1d845928598a5efc2d9dcf7e4496f4074 (patch)
treef5225816c9b058dbea6328fa106a864ef39ba0ad
parentf4bf318091988bffc60a1610f9cd9f00b97e2743 (diff)
feat(db/dao): add DAO repository interfaces
-rw-r--r--src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/OperationDAO.java8
-rw-r--r--src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/PartnerContactDAO.java8
-rw-r--r--src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/PartnerDAO.java9
-rw-r--r--src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/ProductDAO.java8
-rw-r--r--src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/StorageSlotDAO.java8
5 files changed, 41 insertions, 0 deletions
diff --git a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/OperationDAO.java b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/OperationDAO.java
new file mode 100644
index 0000000..bfd4678
--- /dev/null
+++ b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/OperationDAO.java
@@ -0,0 +1,8 @@
+package ru.mrfoxygmfr.warehouse_accounting.db.dao;
+
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+import ru.mrfoxygmfr.warehouse_accounting.db.models.Operation;
+
+public interface OperationDAO extends JpaRepository<Operation, Integer>, JpaSpecificationExecutor<Operation> {
+}
diff --git a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/PartnerContactDAO.java b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/PartnerContactDAO.java
new file mode 100644
index 0000000..0b01465
--- /dev/null
+++ b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/PartnerContactDAO.java
@@ -0,0 +1,8 @@
+package ru.mrfoxygmfr.warehouse_accounting.db.dao;
+
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+import ru.mrfoxygmfr.warehouse_accounting.db.models.PartnerContact;
+
+public interface PartnerContactDAO extends JpaRepository<PartnerContact, Integer>, JpaSpecificationExecutor<PartnerContact> {
+}
diff --git a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/PartnerDAO.java b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/PartnerDAO.java
new file mode 100644
index 0000000..cd297ed
--- /dev/null
+++ b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/PartnerDAO.java
@@ -0,0 +1,9 @@
+package ru.mrfoxygmfr.warehouse_accounting.db.dao;
+
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+import ru.mrfoxygmfr.warehouse_accounting.db.models.Partner;
+
+
+public interface PartnerDAO extends JpaRepository<Partner, Integer>, JpaSpecificationExecutor<Partner> {
+}
diff --git a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/ProductDAO.java b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/ProductDAO.java
new file mode 100644
index 0000000..5e6e944
--- /dev/null
+++ b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/ProductDAO.java
@@ -0,0 +1,8 @@
+package ru.mrfoxygmfr.warehouse_accounting.db.dao;
+
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+import ru.mrfoxygmfr.warehouse_accounting.db.models.Product;
+
+public interface ProductDAO extends JpaRepository<Product, Integer>, JpaSpecificationExecutor<Product> {
+}
diff --git a/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/StorageSlotDAO.java b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/StorageSlotDAO.java
new file mode 100644
index 0000000..2103800
--- /dev/null
+++ b/src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/StorageSlotDAO.java
@@ -0,0 +1,8 @@
+package ru.mrfoxygmfr.warehouse_accounting.db.dao;
+
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+import ru.mrfoxygmfr.warehouse_accounting.db.models.StorageSlot;
+
+public interface StorageSlotDAO extends JpaRepository<StorageSlot, Integer>, JpaSpecificationExecutor<StorageSlot> {
+}