Class ResultParent

java.lang.Object
com.ubs.backend.classes.database.ResultParent
Direct Known Subclasses:
Result, TypeTag

@MappedSuperclass public class ResultParent extends Object
Since:
19.07.2021
Author:
Tim Irmler
  • Field Details

    • id

      private long id
    • tag

      private Tag tag
      The Tag for the Answer
      Since:
      19.07.2021
      See Also:
      Tag
    • upvotes

      private int upvotes
      The amount of Upvotes this Result has received
      Since:
      19.07.2021
    • downvotes

      private int downvotes
      The amount of Downvotes this Result has received
      Since:
      19.07.2021
    • usages

      private int usages
      The Amount of usages this Result has
      Since:
      19.07.2021
  • Constructor Details

    • ResultParent

      public ResultParent()
    • ResultParent

      public ResultParent(Tag tag)
    • ResultParent

      public ResultParent(Tag tag, int upvotes, int downvotes)
  • Method Details

    • getId

      public long getId()
    • setId

      public void setId(long id)
    • getTag

      public Tag getTag()
    • setTag

      public void setTag(Tag tag)
    • getUpvotes

      public int getUpvotes()
    • setUpvotes

      public void setUpvotes(int tagUpvotes)
    • getDownvotes

      public int getDownvotes()
    • setDownvotes

      public void setDownvotes(int tagDownvotes)
    • getUsages

      public int getUsages()
    • setUsages

      public void setUsages(int tagUsages)
    • toString

      public String toString()
      Overrides:
      toString in class Object