From 23a46b4be35277e06ec89f48730eeb694e686be8 Mon Sep 17 00:00:00 2001
From: Kenmegne <stephanie.kenmegne@gmail.com>
Date: Thu, 18 Jun 2026 15:40:06 +0000
Subject: [PATCH] add fdx-commons and fdx-consultation
---
fdx-commons/fdxcommons-dao-ifaces/src/main/java/com/megatim/fdxcommons/dao/ifaces/natureproduction/NatureProductionFichierDAO.java | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/fdx-commons/fdxcommons-dao-ifaces/src/main/java/com/megatim/fdxcommons/dao/ifaces/natureproduction/NatureProductionFichierDAO.java b/fdx-commons/fdxcommons-dao-ifaces/src/main/java/com/megatim/fdxcommons/dao/ifaces/natureproduction/NatureProductionFichierDAO.java
new file mode 100644
index 0000000..892d17a
--- /dev/null
+++ b/fdx-commons/fdxcommons-dao-ifaces/src/main/java/com/megatim/fdxcommons/dao/ifaces/natureproduction/NatureProductionFichierDAO.java
@@ -0,0 +1,25 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.megatim.fdxcommons.dao.ifaces.natureproduction;
+
+import com.megatim.fdxcommons.dao.ifaces.abstracts.CustomDAOIfaces;
+import com.megatim.fdxcommons.model.referentiel.natureproduction.NatureProductionFichier;
+import com.megatim.fdxcommons.model.referentiel.natureproduction.NatureProductionFichierId;
+import java.util.List;
+import javax.persistence.Query;
+
+/**
+ *
+ * @author ASUS
+ */
+public interface NatureProductionFichierDAO extends CustomDAOIfaces<NatureProductionFichier, NatureProductionFichierId, NatureProductionFichier> {
+
+ default List<NatureProductionFichier> getByReferentiel(String referentielVersion) {
+ Query query = getEntityManager().createQuery("SELECT n from NatureProductionFichier n where n.referentiel.version = :referentielVersion");
+ query.setParameter("referentielVersion", referentielVersion);
+
+ return query.getResultList();
+ }
+}
--
Gitblit v1.10.0