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-model/src/main/java/com/megatim/fdxcommons/model/integration/json/TypeFichierJson.java |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/integration/json/TypeFichierJson.java b/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/integration/json/TypeFichierJson.java
new file mode 100644
index 0000000..62992dc
--- /dev/null
+++ b/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/integration/json/TypeFichierJson.java
@@ -0,0 +1,56 @@
+/*
+ * 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.model.integration.json;
+
+import com.megatim.fdxcommons.model.referentiel.Referentiel;
+import com.megatim.fdxcommons.model.referentiel.TypeFichier;
+import java.io.Serializable;
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
+
+/**
+ * @author ASUS
+ */
+@Getter
+@Setter
+@Entity
+@NoArgsConstructor
+@XmlRootElement(name = "typeFichierJson")
+@XmlAccessorType(XmlAccessType.FIELD)
+public class TypeFichierJson implements Serializable {
+
+    @Id
+    @SequenceGenerator(name = "SEQ_TYPE_FICHIER",
+            sequenceName = "SEQ_TYPE_FICHIER",
+            allocationSize = 1,
+            initialValue = 1)
+    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_TYPE_FICHIER")
+    @XmlTransient
+    private Long id;
+
+    @OneToOne(cascade = CascadeType.MERGE)
+    @JoinColumn(name = "referentiel_version")
+    private Referentiel referentiel;
+    
+    @OneToOne(cascade = CascadeType.MERGE)
+    @JoinColumn(name = "type_fichier_code")
+    private TypeFichier typeFichier;
+
+    @OneToOne(cascade = CascadeType.ALL)
+    @JoinColumn(name = "json_structure_id")
+    private JsonStructure jsonStructure;
+
+    public TypeFichierJson(TypeFichier typeFichier, JsonStructure jsonStructure) {
+        this.typeFichier = typeFichier;
+        this.jsonStructure = jsonStructure;
+    }
+}

--
Gitblit v1.10.0