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-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/configuration/CodeStatutHttp.java |  124 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 124 insertions(+), 0 deletions(-)

diff --git a/fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/configuration/CodeStatutHttp.java b/fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/configuration/CodeStatutHttp.java
new file mode 100644
index 0000000..504a428
--- /dev/null
+++ b/fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/configuration/CodeStatutHttp.java
@@ -0,0 +1,124 @@
+package com.megatim.fdxconsultation.model.configuration;
+
+import com.megatim.fdxcommons.model.enumeration.TypeOperation;
+import java.io.Serializable;
+import java.util.Date;
+import java.util.Objects;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.SequenceGenerator;
+import javax.persistence.Table;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+import javax.persistence.Transient;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ *
+ * @author DYNABOOK
+ */
+@Getter
+@Setter
+@Entity(name = "CodeStatutHttp")
+@Table(name = "FDX_CODE_STATUT_HTTP")
+public class CodeStatutHttp implements Comparable<CodeStatutHttp>, Serializable {
+
+    @SequenceGenerator(name = "SEQ_FDX_CODE_STATUT_HTTP",
+            sequenceName = "SEQ_FDX_CODE_STATUT_HTTP",
+            allocationSize = 1,
+            initialValue = 1)
+    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_FDX_CODE_STATUT_HTTP")
+    @Column(name = "ID")
+    @Id
+    private Long id;
+
+    @Column(name = "ID_GENERER")
+    protected String idGenerer;
+
+    @Column(name = "CODE")
+    private String code;
+    
+    @Column(nullable = false, name = "LIBELLE")
+    private String libelle;
+
+    @Column(name = "TYPE_OPERATION")
+    private TypeOperation typeOperation = TypeOperation.AJOUTER;
+
+    @Column(name = "DATE_CREATION")
+    @Temporal(TemporalType.TIMESTAMP)
+    private Date dateCreation;
+
+    @Column(name = "USER_CREATION")
+    private String utilisateurCreation;
+
+    @Column(name = "DATE_DERN_MOD")
+    @Temporal(TemporalType.TIMESTAMP)
+    private Date dateDerniereModification;
+
+    @Column(name = "USER_UPDATE")
+    private String utilisateurModification;
+
+    @Column(name = "DATE_SUPPR")
+    @Temporal(TemporalType.TIMESTAMP)
+    private Date dateSuppression;
+
+    @Column(name = "USER_DELETE")
+    private String utilisateurSuppression;
+    
+    @Transient
+    private int nbreUtilisateur;
+
+    public CodeStatutHttp() {}
+
+    public CodeStatutHttp(String code, String libelle) {
+        this.code = code;
+        this.libelle = libelle;
+    }
+
+    @Override
+    public int hashCode() {
+        int hash = 7;
+        hash = 11 * hash + Objects.hashCode(this.id);
+        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 CodeStatutHttp other = (CodeStatutHttp) obj;
+        if (!Objects.equals(this.id, other.id)) {
+            return false;
+        }
+        return true;
+    }
+
+    /*
+     * (non-Javadoc)
+     * @see java.lang.Comparable#compareTo(java.lang.Object)
+     */
+    @Override
+    public int compareTo(CodeStatutHttp parameter) {
+        if (parameter == null) {
+            return -1;
+        }
+        if (parameter.code == null || parameter.code.trim().length() == 0) {
+            return -1;
+        }
+        if (code == null || code.trim().length() == 0) {
+            return 1;
+        }
+        return code.compareTo(parameter.code);
+    }
+}

--
Gitblit v1.10.0