From 3e20ffe1d845928598a5efc2d9dcf7e4496f4074 Mon Sep 17 00:00:00 2001 From: mrfoxygmfr Date: Sun, 23 Mar 2025 14:51:25 +0300 Subject: feat(db/dao): add DAO repository interfaces --- .../ru/mrfoxygmfr/warehouse_accounting/db/dao/OperationDAO.java | 8 ++++++++ .../warehouse_accounting/db/dao/PartnerContactDAO.java | 8 ++++++++ .../ru/mrfoxygmfr/warehouse_accounting/db/dao/PartnerDAO.java | 9 +++++++++ .../ru/mrfoxygmfr/warehouse_accounting/db/dao/ProductDAO.java | 8 ++++++++ .../mrfoxygmfr/warehouse_accounting/db/dao/StorageSlotDAO.java | 8 ++++++++ 5 files changed, 41 insertions(+) create mode 100644 src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/OperationDAO.java create mode 100644 src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/PartnerContactDAO.java create mode 100644 src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/PartnerDAO.java create mode 100644 src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/ProductDAO.java create mode 100644 src/main/java/ru/mrfoxygmfr/warehouse_accounting/db/dao/StorageSlotDAO.java (limited to 'src/main') 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, JpaSpecificationExecutor { +} 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, JpaSpecificationExecutor { +} 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, JpaSpecificationExecutor { +} 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, JpaSpecificationExecutor { +} 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, JpaSpecificationExecutor { +} -- cgit mrf-deployment