diff --git a/src/main/java/org/ntlab/amaryllis/server/entities/Category.java b/src/main/java/org/ntlab/amaryllis/server/entities/Category.java index 7880fe8..da3fd6f 100644 --- a/src/main/java/org/ntlab/amaryllis/server/entities/Category.java +++ b/src/main/java/org/ntlab/amaryllis/server/entities/Category.java @@ -8,12 +8,14 @@ public Category(String categoryName) { this.categoryId = randomUUID().toString(); - this.categoryId = categoryName; + this.categoryName = categoryName; } - public void setCategory(String categoryId){ - this.categoryName = categoryId; + public String getCategoryId() { + return categoryId; } - + public String getCategoryName() { + return categoryName; + } } \ No newline at end of file