Class Comment


  • @Entity
    public class Comment
    extends AbstractEntity
    Current demand for comments is just for Survey. If we want to extend this to other entities we must change the relationship and hold the entry comment at each entity that wants a comment tree. Today we hold this in comments themselves. Today this relationship is like this ( Survey ← comment ← comment child ) If we need to change this, we'll have to add a empty root comment for every survey and replace survey_id with this root element, and add a reference for this root element to the corresponding survey , the relationship will be like this ( entity(survey) → comment root ← comments)
    • Constructor Detail

      • Comment

        public Comment()
      • Comment

        public Comment​(java.lang.String comment)
    • Method Detail

      • getOwnerId

        public java.util.UUID getOwnerId()
      • setOwnerId

        public void setOwnerId​(java.util.UUID ownerId)
      • getComments

        public java.util.List<Comment> getComments()
      • setComments

        public void setComments​(java.util.List<Comment> comments)
      • getComment

        public java.lang.String getComment()
      • setComment

        public void setComment​(java.lang.String comment)
      • isPublic

        public boolean isPublic()
      • setPublic

        public void setPublic​(boolean aPublic)
      • getTreeSize

        public int getTreeSize()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class AbstractEntity