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/dataproduction/CommonDataProduction.java | 73 ++++++++++++++++++++++++++++++++++++
1 files changed, 73 insertions(+), 0 deletions(-)
diff --git a/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/dataproduction/CommonDataProduction.java b/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/dataproduction/CommonDataProduction.java
new file mode 100644
index 0000000..843bc97
--- /dev/null
+++ b/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/dataproduction/CommonDataProduction.java
@@ -0,0 +1,73 @@
+package com.megatim.fdxcommons.model.dataproduction;
+
+import com.megatim.fdxcommons.model.enumeration.StatutDataProduction;
+import com.megatim.fdxcommons.model.search.CriteriaEntitySearch;
+import java.io.Serializable;
+import java.time.LocalDateTime;
+import javax.persistence.EnumType;
+import javax.persistence.Enumerated;
+import javax.persistence.Id;
+import javax.persistence.MappedSuperclass;
+import javax.validation.constraints.NotNull;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
+
+/**
+ *
+ * @author ASUS
+ */
+@Getter
+@Setter
+@NoArgsConstructor
+@MappedSuperclass
+public class CommonDataProduction implements Serializable {
+
+ @Id
+ private Long id;
+
+ @NotNull(message = "Le type de fichier est obligatoire")
+ @CriteriaEntitySearch(libelle = "Type du Fichier", rang = 1)
+ protected String codeTypeFichier;
+
+ @CriteriaEntitySearch(libelle = "Participant", rang = 2)
+ protected String codeParticipant;
+
+ @NotNull(message = "Le référentiel est obligatoire")
+ @CriteriaEntitySearch(libelle = "Référentiel", rang = 3)
+ protected String referentielVersion;
+
+ @NotNull(message = "La source est obligatoire")
+ @Enumerated(EnumType.STRING)
+ @CriteriaEntitySearch(libelle = "Source de la production", rang = 4)
+ protected DataProductionSource source;
+
+ @NotNull(message = "La date est obligatoire")
+ @CriteriaEntitySearch(libelle = "Date création de la production", rang = 0)
+ protected LocalDateTime dateProduction;
+
+ @CriteriaEntitySearch(libelle = "Nom du Fichier", rang = 5)
+ protected String fileName;
+
+ @NotNull(message = "La statut de la production est obligatoire")
+ @Enumerated(EnumType.STRING)
+ protected StatutDataProduction statutDataProduction = StatutDataProduction.A_CONSOMMER;
+
+ protected LocalDateTime fileDate;
+
+ @Enumerated(EnumType.STRING)
+ protected DataProductionType dataProductionType = DataProductionType.ADD;
+
+ protected String token;
+
+ protected LocalDateTime dateMiseAJour;
+
+ protected Long nbreElements = 0L;
+
+ protected Long tailleFichier = 0L;//en octet
+
+ protected String integrationFileName;// Nom du fichier généré pour consommation par Standalone et Consultation
+
+ protected String tokenDirectory;
+
+}
--
Gitblit v1.10.0