Class Result

java.lang.Object
com.ubs.backend.classes.database.ResultParent
com.ubs.backend.classes.database.Result

@Entity public class Result extends ResultParent
Dataclass to store all Results with their answer, tag, upvotes, downvotes and usages
Since:
17.07.2021
Author:
Marc Andri Fuchs
  • Field Details

    • answer

      private Answer answer
      The Answer for the Tag
      Since:
      17.07.2021
      See Also:
      Answer
  • Constructor Details

    • Result

      public Result(Answer answer, Tag tag)
      Default Constructor If you create an answer in code, please use this one
      Parameters:
      answer - the Answer which will be matched with the Tag
      tag - the Tag for this Result
      Since:
      17.07.2021
    • Result

      public Result(Answer answer, Tag tag, int upvotes, int downvotes)
      All-args constructor
      Parameters:
      answer - the Answer which will be matched with the Tag
      tag - the Tag for this Result
      upvotes - the amount of Upvotes
      downvotes - the amount of Downvotes
      Since:
      17.07.2021
    • Result

      public Result()
      No-args constructor
      Since:
      17.07.2021
  • Method Details