can get comment children of an other comment

This commit is contained in:
2019-09-22 23:54:53 +02:00
parent dc490dcac3
commit 3a77eff86e
5 changed files with 75 additions and 9 deletions

View File

@@ -10,7 +10,8 @@ open class Comment <T: UuidEntity> (
var content: String,
var responses: List<Comment<T>>? = null,
var parent: Comment<T>? = null,
var parentsIds: List<UUID>? = null
var parentsIds: List<UUID>? = null,
val childrenCount: Int? = null
): Extra<T>(id, createdBy),
EntityUpdatedAt by EntityUpdatedAtImp(),
EntityDeletedAt by EntityDeletedAtImp()