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/ColumnDefinition.java |   71 +++++++++++++++++++++++++++++++++++
 1 files changed, 71 insertions(+), 0 deletions(-)

diff --git a/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/integration/ColumnDefinition.java b/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/integration/ColumnDefinition.java
new file mode 100644
index 0000000..d120680
--- /dev/null
+++ b/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/integration/ColumnDefinition.java
@@ -0,0 +1,71 @@
+package com.megatim.fdxcommons.model.integration;
+
+import java.io.Serializable;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.IdClass;
+import javax.persistence.Transient;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
+
+/**
+ *
+ * @author ASUS
+ */
+@Entity
+@NoArgsConstructor
+@Getter
+@Setter
+@IdClass(ColumnDefinitionId.class)
+public class ColumnDefinition implements Serializable {
+
+    @Id
+    private String codeTypeFichier;
+
+    @Id
+    private String referentielVersion;
+
+    @Id
+    private String name;
+
+    private String typeDonnee;
+
+    private int taille;
+
+    private int taillePartieDecimale;
+
+    private String formatDate;
+
+    private int position;
+
+    @Transient
+    private boolean required;
+
+    @Transient
+    private boolean collection;
+
+    public ColumnDefinition(String codeTypeFichier, String referentielVersion, String name, String typeDonnee, int taille, int taillePartieDecimale, String formatDate, int position) {
+        this.codeTypeFichier = codeTypeFichier;
+        this.referentielVersion = referentielVersion;
+        this.name = name;
+        this.typeDonnee = typeDonnee;
+        this.taille = taille;
+        this.taillePartieDecimale = taillePartieDecimale;
+        this.formatDate = formatDate;
+        this.position = position;
+    }
+
+    public ColumnDefinition(String name, String typeDonnee, int taille, boolean required, boolean collection) {
+        this.name = name;
+        this.typeDonnee = typeDonnee;
+        this.taille = taille;
+        this.required = required;
+        this.collection = collection;
+    }
+
+    @Override
+    public String toString() {
+        return "ColumnDefinition{" + "codeTypeFichier=" + codeTypeFichier + ", referentielVersion=" + referentielVersion + ", name=" + name + ", typeDonnee=" + typeDonnee + '}';
+    }
+}

--
Gitblit v1.10.0