Class Question


  • @Entity
    public class Question
    extends Object
    This is our Question entity class that represents Question objects in the Database. It is keeping track of all attributes (i.e., id, externalKey, created, question, answer, source).
    • Constructor Detail

      • Question

        public Question()
    • Method Detail

      • getId

        public UUID getId()
        Returns the primary key identifier for this instance.
      • getExternalKey

        public UUID getExternalKey()
        Returns a unique external key identifier for this instance.
      • getCreated

        public Date getCreated()
        Returns an object creation Date for this instance.
      • getUser

        public User getUser()
        Returns a User object for this instance.
      • setUser

        public void setUser​(User user)
        Sets a User object for this instance.
      • getQuestion

        public String getQuestion()
        Returns a question in the form of a string.
      • setQuestion

        public void setQuestion​(String question)
        Sets a question in the form of a string.
      • getAnswer

        public String getAnswer()
        Returns an answer in the form of a string.
      • setAnswer

        public void setAnswer​(String answer)
        Sets an answer in the form of a string.
      • getSource

        public String getSource()
        Returns a source in the form of a string.
      • setSource

        public void setSource​(String source)
        Sets a source in the form of a string. source
      • getUserAnswer

        public String getUserAnswer()
        Returns a user answer in the form of a string.
      • setUserAnswer

        public void setUserAnswer​(String userAnswer)
        Sets a user answer in the form of a string.