Class Answer

java.lang.Object
it.unimib.unimibmodules.model.Answer

@Entity public class Answer extends Object
Represents an open-ended answer.
Version:
0.4.1
Author:
Davide Costantini
  • Field Details

    • id

      private int id
      The id of the answer.
    • text

      private String text
      The text of the answer.
    • user

      private User user
      The user who created the answer.
    • survey

      private Survey survey
      The survey to which this answer belongs.
    • question

      private Question question
      The question to which this answer belongs.
    • closeEndedAnswers

      private Set<CloseEndedAnswer> closeEndedAnswers
      The list of close-ended answers related to this answer.
  • Constructor Details

    • Answer

      public Answer()
      Creates an empty answer.
  • Method Details