From 494d349fb67be74da49caae2794fda702f595fb4 Mon Sep 17 00:00:00 2001
From: Kenmegne <stephanie.kenmegne@gmail.com>
Date: Thu, 18 Jun 2026 16:29:11 +0000
Subject: [PATCH] rename packages

---
 fdx_generator/src/main/java/com/megatim/fdxgenerator/model/StructureLigne.java |   94 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 94 insertions(+), 0 deletions(-)

diff --git a/fdx_generator/src/main/java/com/megatim/fdxgenerator/model/StructureLigne.java b/fdx_generator/src/main/java/com/megatim/fdxgenerator/model/StructureLigne.java
new file mode 100644
index 0000000..9439f90
--- /dev/null
+++ b/fdx_generator/src/main/java/com/megatim/fdxgenerator/model/StructureLigne.java
@@ -0,0 +1,94 @@
+/*
+ * 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.fdxgenerator.model;
+
+import com.megatimfx.common.validationgroups.ViewFormValidationGroup;
+import com.megatim.fdxgenerator.enums.TypeDonnee;
+import com.megatim.fdxgenerator.pojo.Delimiteur;
+import java.io.Serializable;
+import javax.persistence.Entity;
+import javax.persistence.EnumType;
+import javax.persistence.Enumerated;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+import javax.persistence.Transient;
+import javax.validation.constraints.NotEmpty;
+import javax.validation.constraints.NotNull;
+import lombok.Getter;
+import lombok.Setter;
+import org.hibernate.validator.constraints.Range;
+
+/**
+ *
+ * @author STEPHANIE
+ */
+@Entity
+@Getter
+@Setter
+//@TailleFormatDateConstraint(groups = {ViewFormValidationGroup.class})
+public class StructureLigne implements Serializable {
+    @Id
+//    @NotEmpty(message = "L'identifiant est obligatoire", groups = {ViewFormValidationGroup.class})
+    private String id;
+
+    @Range(min = 1, message = "La position doit être supérieure à 0", groups = {ViewFormValidationGroup.class})
+    private int position;
+
+    @NotEmpty(message = "Le code est obligatoire", groups = {ViewFormValidationGroup.class})
+    private String code;
+
+    private String designation;
+
+    @Range(min = 1, message = "La taille du champ doit être supérieure à 0", groups = {ViewFormValidationGroup.class})
+    private int taille;
+    
+    private int taillePartieDecimal;
+
+    private String source;
+    
+    private String formatDate;
+    
+    private String separateurDate;
+    
+    private String separateurDecimal;
+    
+    @Transient
+    private Delimiteur delimiteurDate;
+    
+    @Transient
+    private Delimiteur delimiteurDecimal;
+
+    @Enumerated(EnumType.STRING)
+    @NotNull(message = "Le type de données est obligatoire", groups = {ViewFormValidationGroup.class})
+    private TypeDonnee typeDonnee;
+
+    @NotNull(message = "Le validateur de fichier doit être indiqué")
+    @ManyToOne
+    private ValidateurFichier validateurFichier;
+    
+    @Override
+    public String toString() {
+        return this.code + " - " + this.designation;
+    }
+
+    @Override
+    public boolean equals(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (!(obj instanceof StructureLigne)) {
+            return false;
+        }
+        final StructureLigne other = (StructureLigne) obj;
+        if (this.getId() != null && !this.getId().equals(other.getId())) {
+            return false;
+        }
+        return true;
+    }
+
+}

--
Gitblit v1.10.0