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/integration/json/TypeFichierJsonDAO.java |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/fdx-commons/fdxcommons-dao-ifaces/src/main/java/com/megatim/fdxcommons/dao/ifaces/integration/json/TypeFichierJsonDAO.java b/fdx-commons/fdxcommons-dao-ifaces/src/main/java/com/megatim/fdxcommons/dao/ifaces/integration/json/TypeFichierJsonDAO.java
new file mode 100644
index 0000000..6e5960d
--- /dev/null
+++ b/fdx-commons/fdxcommons-dao-ifaces/src/main/java/com/megatim/fdxcommons/dao/ifaces/integration/json/TypeFichierJsonDAO.java
@@ -0,0 +1,29 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Interface.java to edit this template
+ */
+package com.megatim.fdxcommons.dao.ifaces.integration.json;
+
+import com.megatim.fdxcommons.dao.ifaces.abstracts.CustomDAOIfaces;
+import com.megatim.fdxcommons.model.integration.json.TypeFichierJson;
+import java.util.List;
+import java.util.Optional;
+import javax.persistence.Query;
+
+/**
+ *
+ * @author ASUS
+ */
+public interface TypeFichierJsonDAO extends CustomDAOIfaces<TypeFichierJson, Long, TypeFichierJson> {
+
+    @Override
+    public default TypeFichierJson getById(Long id) {
+        Query query = getEntityManager().createQuery("SELECT t from TypeFichierJson t where t.id = :id ");
+        query.setParameter("id", id);
+        Optional<TypeFichierJson> optJsonStructure = ((List<TypeFichierJson>) query.getResultList()).stream().findFirst();
+
+        return optJsonStructure.isPresent() ? optJsonStructure.get() : null;
+    }
+
+    TypeFichierJson findByReferentielAndByTypeFichier(String referentielVersion, String codeTypeFichier);
+}

--
Gitblit v1.10.0