tdmcginley

Forms.java

May 13th, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. package data;
  2.  
  3. import java.sql.Date;
  4.  
  5. import javax.persistence.*;
  6.  
  7.  
  8. @Entity
  9. @Table(name="forms")
  10. public class Forms {
  11. @Id @GeneratedValue
  12. Long id;
  13. String name;
  14. String type;
  15. String description;
  16. String information;
  17. String complete;
  18. Date create_date;
  19. String create_user;
  20. Date touch_date;
  21. String touch_user;
  22. // private List<Questions> question;
  23.  
  24.  
  25. public Long getId() {
  26. return id;
  27. }
  28.  
  29. public void setId(Long id) {
  30. this.id = id;
  31. }
  32.  
  33. public String getName() {
  34. return name;
  35. }
  36.  
  37. public void setName(String name) {
  38. this.name = name;
  39. }
  40.  
  41. public String getType() {
  42. return type;
  43. }
  44.  
  45. public void setType(String type) {
  46. this.type = type;
  47. }
  48.  
  49. public String getDescription() {
  50. return description;
  51. }
  52.  
  53. public void setDescription(String description) {
  54. this.description = description;
  55. }
  56.  
  57. /**
  58. * @param information the information to set
  59. */
  60. public void setInformation(String information) {
  61. this.information = information;
  62. }
  63. /**
  64. * @return the information
  65. */
  66. public String getInformation() {
  67. return information;
  68. }
  69. /**
  70. * @param complete the complete to set
  71. */
  72. public void setComplete(String complete) {
  73. this.complete = complete;
  74. }
  75. /**
  76. * @return the complete
  77. */
  78. public String getComplete() {
  79. return complete;
  80. }
  81. /**
  82. * @param create_date the create_date to set
  83. */
  84. public void setCreate_date(Date create_date) {
  85. this.create_date = create_date;
  86. }
  87. /**
  88. * @return the create_date
  89. */
  90. public Date getCreate_date() {
  91. return create_date;
  92. }
  93. /**
  94. * @param create_user the create_user to set
  95. */
  96. public void setCreate_user(String create_user) {
  97. this.create_user = create_user;
  98. }
  99. /**
  100. * @return the create_user
  101. */
  102. public String getCreate_user() {
  103. return create_user;
  104. }
  105. /**
  106. * @param touch_date the touch_date to set
  107. */
  108. public void setTouch_date(Date touch_date) {
  109. this.touch_date = touch_date;
  110. }
  111. /**
  112. * @return the touch_date
  113. */
  114. public Date getTouch_date() {
  115. return touch_date;
  116. }
  117. /**
  118. * @param touch_user the touch_user to set
  119. */
  120. public void setTouch_user(String touch_user) {
  121. this.touch_user = touch_user;
  122. }
  123. /**
  124. * @return the touch_user
  125. */
  126. public String getTouch_user() {
  127. return touch_user;
  128. }
  129.  
  130. /**
  131. * @param question the question to set
  132. */
  133. // public void setQuestion(List<Questions> question) {
  134. // this.question = question;
  135. // }
  136.  
  137. /**
  138. * @return the question
  139. */
  140. // @OneToMany(mappedBy="questions",
  141. // targetEntity=Questions.class,
  142. // fetch=FetchType.EAGER,
  143. // cascade=CascadeType.ALL)
  144. // public List<Questions> getQuestion() {
  145. // return question;
  146. // }
  147.  
  148. }
Advertisement
Add Comment
Please, Sign In to add comment