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/documents/Category.java | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/documents/Category.java b/fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/documents/Category.java
new file mode 100644
index 0000000..4ad90a9
--- /dev/null
+++ b/fdx-consultation/fdxconsultation-model/src/main/java/com/megatim/fdxconsultation/model/documents/Category.java
@@ -0,0 +1,27 @@
+package com.megatim.fdxconsultation.model.documents;
+
+import com.megatim.fdxconsultation.model.base.BaseEntity;
+import java.io.Serializable;
+import java.util.HashSet;
+import java.util.Set;
+import javax.persistence.Entity;
+import javax.persistence.OneToMany;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ *
+ * @author Gabuntu
+ */
+@Setter
+@Getter
+@Entity
+public class Category extends BaseEntity implements Serializable {
+
+ private String name;
+ private int position;
+
+ @OneToMany(mappedBy = "category")
+ private Set<Document> documents = new HashSet<>();
+
+}
--
Gitblit v1.10.0