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/supervision/AgentConfigurationEntity.java |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 55 insertions(+), 0 deletions(-)

diff --git a/fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/supervision/AgentConfigurationEntity.java b/fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/supervision/AgentConfigurationEntity.java
new file mode 100644
index 0000000..8d404e9
--- /dev/null
+++ b/fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/supervision/AgentConfigurationEntity.java
@@ -0,0 +1,55 @@
+package com.megatim.fdxconsultation.model.supervision;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import java.io.Serializable;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.EnumType;
+import javax.persistence.Enumerated;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+import javax.persistence.SequenceGenerator;
+import javax.validation.constraints.NotEmpty;
+import javax.validation.constraints.NotNull;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ *
+ * @author ASUS
+ */
+@Getter
+@Setter
+@Entity
+public class AgentConfigurationEntity implements Serializable {
+
+    @SequenceGenerator(name = "SEQ_AGENT_CONFIGURATION",
+            sequenceName = "SEQ_AGENT_CONFIGURATION",
+            allocationSize = 1,
+            initialValue = 1)
+    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_AGENT_CONFIGURATION")
+    @Column(name = "ID")
+    @Id
+    private Long id;
+
+    @NotEmpty(message = "Le code de l'agent est obligatoire")
+    private String agentCode;
+
+    @NotEmpty(message = "L'adresse IP de l'agent est obligatoire")
+    private String agentAddress;
+
+    @NotEmpty(message = "L'adresse MAC de l'agent est obligatoire")
+    private String agentMAC;
+
+    private boolean statut;
+
+    @Enumerated(EnumType.STRING)
+    @NotNull(message = "Le statut de la configuration est obligatoire")
+    private StatutConfiguration statutConfiguration;
+    
+    @JsonIgnore
+    @ManyToOne
+    private StandaloneServerStateEntity standaloneServerState;
+}

--
Gitblit v1.10.0