tdmcginley

Questions.java

May 13th, 2011
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. package data;
  2.  
  3. import java.sql.Date;
  4.  
  5. import javax.persistence.Entity;
  6. import javax.persistence.GeneratedValue;
  7. import javax.persistence.Id;
  8. import javax.persistence.Table;
  9.  
  10. @Entity
  11. @Table(name="questions")
  12. public class Questions {
  13.  
  14. @Id @GeneratedValue
  15. Long id;
  16. Long form_id;
  17. String question;
  18. Long correct_answer;
  19. char forced_hint;
  20. char multiple_choice;
  21. Long sequence;
  22. Date create_date;
  23. String create_user;
  24. Date touch_date;
  25. String touch_user;
  26. // Forms form;
  27. /**
  28. * @return the id
  29. */
  30. public Long getId() {
  31. return id;
  32. }
  33.  
  34. /**
  35. * @param id the id to set
  36. */
  37. public void setId(Long id) {
  38. this.id = id;
  39. }
  40.  
  41. /**
  42. * @return the form_id
  43. */
  44. public Long getForm_id() {
  45. return form_id;
  46. }
  47. /**
  48. * @param form_id the form_id to set
  49. */
  50. public void setForm_id(Long form_id) {
  51. this.form_id = form_id;
  52. }
  53. /**
  54. * @return the question
  55. */
  56. public String getQuestion() {
  57. return question;
  58. }
  59. /**
  60. * @param question the question to set
  61. */
  62. public void setQuestion(String question) {
  63. this.question = question;
  64. }
  65. /**
  66. * @return the correctAnswer
  67. */
  68. public Long getCorrect_Answer() {
  69. return correct_answer;
  70. }
  71. /**
  72. * @param correctAnswer the correctAnswer to set
  73. */
  74. public void setCorrect_Answer(Long correct_answer) {
  75. this.correct_answer = correct_answer;
  76. }
  77. /**
  78. * @return the forcedHint
  79. */
  80. public char getForced_Hint() {
  81. return forced_hint;
  82. }
  83. /**
  84. * @param forcedHint the forcedHint to set
  85. */
  86. public void setForced_Hint(char forced_hint) {
  87. this.forced_hint = forced_hint;
  88. }
  89. /**
  90. * @return the multipleChoice
  91. */
  92. public char getMultiple_Choice() {
  93. return multiple_choice;
  94. }
  95. /**
  96. * @param multipleChoice the multipleChoice to set
  97. */
  98. public void setMultiple_SChoice(char multiple_choice) {
  99. this.multiple_choice = multiple_choice;
  100. }
  101. /**
  102. * @return the sequence
  103. */
  104. public Long getSequence() {
  105. return sequence;
  106. }
  107. /**
  108. * @param sequence the sequence to set
  109. */
  110. public void setSequence(Long sequence) {
  111. this.sequence = sequence;
  112. }
  113. /**
  114. * @return the create_date
  115. */
  116. public Date getCreate_date() {
  117. return create_date;
  118. }
  119. /**
  120. * @param create_date the create_date to set
  121. */
  122. public void setCreate_date(Date create_date) {
  123. this.create_date = create_date;
  124. }
  125. /**
  126. * @return the create_user
  127. */
  128. public String getCreate_user() {
  129. return create_user;
  130. }
  131. /**
  132. * @param create_user the create_user to set
  133. */
  134. public void setCreate_user(String create_user) {
  135. this.create_user = create_user;
  136. }
  137. /**
  138. * @return the touch_date
  139. */
  140. public Date getTouch_date() {
  141. return touch_date;
  142. }
  143. /**
  144. * @param touch_date the touch_date to set
  145. */
  146. public void setTouch_date(Date touch_date) {
  147. this.touch_date = touch_date;
  148. }
  149. /**
  150. * @return the touch_user
  151. */
  152. public String getTouch_user() {
  153. return touch_user;
  154. }
  155. /**
  156. * @param touch_user the touch_user to set
  157. */
  158. public void setTouch_user(String touch_user) {
  159. this.touch_user = touch_user;
  160. }
  161.  
  162. /**
  163. * @param form the form to set
  164. */
  165. // public void setForm(Forms form) {
  166. // this.form = form;
  167. // }
  168.  
  169. /**
  170. * @return the form
  171. */
  172. // @ManyToOne
  173. // @JoinColumn(name="form_id", nullable = false, insertable=false, updatable=false)
  174. // public Forms getForm() {
  175. // return form;
  176. // }
  177.  
  178. }
Advertisement
Add Comment
Please, Sign In to add comment