Questionnaire.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package fr.jaquin.bdlg.planner.persistence;
  2. import javax.persistence.Column;
  3. import javax.persistence.Entity;
  4. import javax.persistence.GeneratedValue;
  5. import javax.persistence.GenerationType;
  6. import javax.persistence.Id;
  7. import javax.persistence.Lob;
  8. import com.fasterxml.jackson.annotation.JsonIgnore;
  9. @Entity
  10. public class Questionnaire {
  11. @Id
  12. @GeneratedValue(strategy = GenerationType.AUTO)
  13. private Long id;
  14. @Column(length = 36)
  15. private String uuid;
  16. @Lob
  17. private String introduction;
  18. private boolean opened;
  19. public Questionnaire() {}
  20. @JsonIgnore
  21. public Long getId() {
  22. return this.id;
  23. }
  24. public void setId(Long id) {
  25. this.id = id;
  26. }
  27. public String getUuid() {
  28. return this.uuid;
  29. }
  30. public void setUuid(String uuid) {
  31. this.uuid = uuid;
  32. }
  33. public String getIntroduction() {
  34. return this.introduction;
  35. }
  36. public void setIntroduction(String introduction) {
  37. this.introduction = introduction;
  38. }
  39. public boolean isOpened() {
  40. return opened;
  41. }
  42. public void setOpened(boolean opened) {
  43. this.opened = opened;
  44. }
  45. }