diff --git a/src/main/java/org/ntlab/amaryllis/server/entities/Comment.java b/src/main/java/org/ntlab/amaryllis/server/entities/Comment.java index 8deb43d..6e6d2b2 100644 --- a/src/main/java/org/ntlab/amaryllis/server/entities/Comment.java +++ b/src/main/java/org/ntlab/amaryllis/server/entities/Comment.java @@ -10,16 +10,16 @@ String uid; String text; - public Comment(String uid, String text) { - this.commentId = randomUUID().toString(); + public Comment(String commentId, String uid, String text) { + this.commentId = commentId; this.uid = uid; this.text = text; } - public String getCid(){ return commentId; } + public String getCommentId(){ return commentId; } public String getUid(){ return uid; } public String getText(){ return text; } -} +} \ No newline at end of file