1. package models;
  2.  
  3. import javax.persistence.CascadeType;
  4. import javax.persistence.Entity;
  5. import javax.persistence.FetchType;
  6. import javax.persistence.ManyToOne;
  7. import play.db.jpa.Model;
  8.  
  9. @Entity(name = "bases")
  10. @org.hibernate.annotations.Entity(dynamicInsert=true,dynamicUpdate=true)
  11. public class Base extends Model
  12. {
  13. private String email;
  14. private String password;
  15. private String server;
  16. private String server_auth;
  17. private int server_port;
  18. private boolean server_ssl;
  19. private boolean server_starttls;
  20. private boolean auth_wholemail;
  21. private boolean is_popsmtp;
  22. private boolean is_relay;
  23. private boolean is_checked;
  24. private boolean is_valid;
  25.  
  26. @ManyToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
  27. private User user;
  28.  
  29. public Base(User user, String email, String password)
  30. {
  31. this.email = email;
  32. this.password = password;
  33. this.user = user;
  34. }
  35.  
  36. /**
  37. * @return the email
  38. */
  39. public String getEmail()
  40. {
  41. return email;
  42. }
  43.  
  44. /**
  45. * @param email the email to set
  46. */
  47. public void setEmail(String email)
  48. {
  49. this.email = email;
  50. }
  51.  
  52. /**
  53. * @return the password
  54. */
  55. public String getPassword()
  56. {
  57. return password;
  58. }
  59.  
  60. /**
  61. * @param password the password to set
  62. */
  63. public void setPassword(String password)
  64. {
  65. this.password = password;
  66. }
  67.  
  68. /**
  69. * @return the server
  70. */
  71. public String getServer()
  72. {
  73. return server;
  74. }
  75.  
  76. /**
  77. * @param server the server to set
  78. */
  79. public void setServer(String server)
  80. {
  81. this.server = server;
  82. }
  83.  
  84. /**
  85. * @return the server_auth
  86. */
  87. public String getServerAuth()
  88. {
  89. return server_auth;
  90. }
  91.  
  92. /**
  93. * @param server_auth the server_auth to set
  94. */
  95. public void setServerAuth(String server_auth)
  96. {
  97. this.server_auth = server_auth;
  98. }
  99.  
  100. /**
  101. * @return the server_port
  102. */
  103. public int getServerPort()
  104. {
  105. return server_port;
  106. }
  107.  
  108. /**
  109. * @param server_port the server_port to set
  110. */
  111. public void setServerPort(int server_port)
  112. {
  113. this.server_port = server_port;
  114. }
  115.  
  116. /**
  117. * @return the server_ssl
  118. */
  119. public boolean isServerSsl()
  120. {
  121. return server_ssl;
  122. }
  123.  
  124. /**
  125. * @param server_ssl the server_ssl to set
  126. */
  127. public void setServerSsl(boolean server_ssl)
  128. {
  129. this.server_ssl = server_ssl;
  130. }
  131.  
  132. /**
  133. * @return the server_starttls
  134. */
  135. public boolean isServerStarttls()
  136. {
  137. return server_starttls;
  138. }
  139.  
  140. /**
  141. * @param server_starttls the server_starttls to set
  142. */
  143. public void setServerStarttls(boolean server_starttls)
  144. {
  145. this.server_starttls = server_starttls;
  146. }
  147.  
  148. /**
  149. * @return the auth_wholemail
  150. */
  151. public boolean isAuthWholemail()
  152. {
  153. return auth_wholemail;
  154. }
  155.  
  156. /**
  157. * @param auth_wholemail the auth_wholemail to set
  158. */
  159. public void setAuthWholemail(boolean auth_wholemail)
  160. {
  161. this.auth_wholemail = auth_wholemail;
  162. }
  163.  
  164. /**
  165. * @return the is_popsmtp
  166. */
  167. public boolean isPopsmtp()
  168. {
  169. return is_popsmtp;
  170. }
  171.  
  172. /**
  173. * @param is_popsmtp the is_popsmtp to set
  174. */
  175. public void setIsPopsmtp(boolean is_popsmtp)
  176. {
  177. this.is_popsmtp = is_popsmtp;
  178. }
  179.  
  180. /**
  181. * @return the is_relay
  182. */
  183. public boolean isRelay()
  184. {
  185. return is_relay;
  186. }
  187.  
  188. /**
  189. * @param is_relay the is_relay to set
  190. */
  191. public void setIsRelay(boolean is_relay)
  192. {
  193. this.is_relay = is_relay;
  194. }
  195.  
  196. /**
  197. * @return the is_checked
  198. */
  199. public boolean isChecked()
  200. {
  201. return is_checked;
  202. }
  203.  
  204. /**
  205. * @param is_checked the is_checked to set
  206. */
  207. public void setIsChecked(boolean is_checked)
  208. {
  209. this.is_checked = is_checked;
  210. }
  211.  
  212. /**
  213. * @return the is_valid
  214. */
  215. public boolean isValid()
  216. {
  217. return is_valid;
  218. }
  219.  
  220. /**
  221. * @param is_valid the is_valid to set
  222. */
  223. public void setIsValid(boolean is_valid)
  224. {
  225. this.is_valid = is_valid;
  226. }
  227.  
  228. /**
  229. * @return the user
  230. */
  231. public User getUser()
  232. {
  233. return user;
  234. }
  235.  
  236. /**
  237. * @param user the user to set
  238. */
  239. public void setUser(User user)
  240. {
  241. this.user = user;
  242. }
  243. }