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

---
 fdx_convert/src/main/java/com/megatim/fdxconvert/model/ModeleJson.java |   84 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 84 insertions(+), 0 deletions(-)

diff --git a/fdx_convert/src/main/java/com/megatim/fdxconvert/model/ModeleJson.java b/fdx_convert/src/main/java/com/megatim/fdxconvert/model/ModeleJson.java
new file mode 100644
index 0000000..8f27e18
--- /dev/null
+++ b/fdx_convert/src/main/java/com/megatim/fdxconvert/model/ModeleJson.java
@@ -0,0 +1,84 @@
+/*
+ * 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.fdxconvert.model;
+
+import java.io.Serializable;
+import java.time.LocalDateTime;
+import java.util.HashSet;
+import java.util.Objects;
+import java.util.Set;
+import javax.persistence.CascadeType;
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.OneToMany;
+import javax.persistence.OneToOne;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ *
+ * @author ASUS
+ */
+@Getter
+@Setter
+@Entity
+public class ModeleJson implements Serializable {
+
+    @Id
+    @GeneratedValue
+    private Long id;
+
+    @OneToOne(cascade = CascadeType.MERGE)
+    @JoinColumn(name = "type_fichier_code")
+//    @NotNull(message = "Le code du type de fichier est obligatoire" , groups = {ViewFormValidationGroup.class})
+    private TypeFichier typeFichier;
+
+//     @NotEmpty(message = "Le nom de l'objet est obligatoire" , groups = {ViewFormValidationGroup.class})
+    private String objectName;
+
+    @OneToMany(mappedBy = "modeleJson", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
+    private Set<StructureChampJson> listeStructureJson = new HashSet<>();
+    
+    @OneToMany(mappedBy = "modeleJson", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
+    private Set<SubObject> subObjects  = new HashSet<>();
+    
+    private LocalDateTime dateCreation;
+    
+    public ModeleJson() {
+         dateCreation = LocalDateTime.now();
+    }
+
+    @Override
+    public String toString() {
+        return "ModeleJson{" + "typeFichier=" + typeFichier + ", objectName=" + objectName + ", listeStructureJson=" + listeStructureJson + '}';
+    }
+
+    @Override
+    public int hashCode() {
+        int hash = 7;
+        hash = 79 * hash + Objects.hashCode(this.dateCreation);
+        return hash;
+    }
+
+    @Override
+    public boolean equals(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (getClass() != obj.getClass()) {
+            return false;
+        }
+        final ModeleJson other = (ModeleJson) obj;
+        return Objects.equals(this.dateCreation, other.dateCreation);
+    }
+    
+
+}

--
Gitblit v1.10.0