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/JsonStructure.java | 82 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 82 insertions(+), 0 deletions(-)
diff --git a/fdx_convert/src/main/java/com/megatim/fdxconvert/model/JsonStructure.java b/fdx_convert/src/main/java/com/megatim/fdxconvert/model/JsonStructure.java
new file mode 100644
index 0000000..0b9db1d
--- /dev/null
+++ b/fdx_convert/src/main/java/com/megatim/fdxconvert/model/JsonStructure.java
@@ -0,0 +1,82 @@
+/*
+ * 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 com.megatim.dynamicjsonparser.enums.TypeDonnee;
+import com.megatim.fdxconvert.pojo.Delimiteur;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+import javax.persistence.*;
+import javax.validation.constraints.Min;
+import javax.validation.constraints.NotNull;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ *
+ * @author ASUS
+ */
+@Getter
+@Setter
+@Entity
+@XmlRootElement
+@XmlAccessorType(XmlAccessType.FIELD)
+public class JsonStructure implements Serializable {
+
+ @Id
+ @SequenceGenerator(name = "SEQ_TYPE_FICHIER_JSON", sequenceName = "SEQ_TYPE_FICHIER_JSON", allocationSize = 1, initialValue = 1)
+ @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_TYPE_FICHIER_JSON")
+ @XmlTransient
+ private Long id;
+
+ @NotNull(message = "Le type de données est obligatoire")
+ @Enumerated(EnumType.STRING)
+ @XmlAttribute
+ private TypeDonnee typeDonnee;
+
+ @NotNull(message = "Le nom est obligatoire")
+ @XmlAttribute
+ private String name;
+
+ @Min(value = 1, message = "La taille doit être supérieure à 0")
+ @XmlAttribute
+ private int lengthh;
+
+ @XmlAttribute
+ private boolean required;
+
+ @XmlAttribute
+ private boolean collection;
+
+ @XmlAttribute
+ private String formatDate;
+
+ @Transient
+ @XmlTransient
+ private Delimiteur delimiteurDate;
+
+ @XmlAttribute
+ private String codeDelimiteurDate;
+
+ @OneToOne
+ @XmlTransient
+ private TypeFichierJson typeFichierJson;
+
+ @ManyToOne
+ @XmlTransient
+ private JsonStructure parent;
+
+ @OneToMany(mappedBy = "parent", cascade = CascadeType.ALL, orphanRemoval = true)
+ @XmlElement(name = "jsonStructure")
+ private List<JsonStructure> fields = new ArrayList<>();
+
+}
--
Gitblit v1.10.0