Guest User

Untitled

a guest
Jan 6th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. package it.smartinclusion.aaaservice.model.jdbc;
  2.  
  3. import java.io.Serializable;
  4. import java.util.Date;
  5. import java.util.Set;
  6.  
  7. import javax.persistence.Column;
  8. import javax.persistence.Entity;
  9. import javax.persistence.GeneratedValue;
  10. import javax.persistence.GenerationType;
  11. import javax.persistence.Id;
  12. import javax.persistence.OneToMany;
  13. import javax.persistence.Table;
  14. import javax.persistence.Temporal;
  15. import javax.persistence.TemporalType;
  16.  
  17.  
  18. /**
  19. * The persistent class for the users database table.
  20. *
  21. */
  22. @Entity
  23. @Table(name="users")
  24. public class User implements Serializable {
  25. private static final long serialVersionUID = 1L;
  26.  
  27. @Id
  28. private long id;
  29.  
  30. private String display;
  31.  
  32. @Column(name="encryption_mode")
  33. private String encryptionMode;
  34.  
  35. @Temporal( TemporalType.TIMESTAMP)
  36. @Column(name="first_login")
  37. private Date firstLogin;
  38.  
  39. @Temporal( TemporalType.TIMESTAMP)
  40. @Column(name="last_login")
  41. private Date lastLogin;
  42.  
  43. private String password;
  44.  
  45. private String username;
  46.  
  47. //bi-directional many-to-one association to GruppiToUser
  48. @OneToMany(mappedBy="user")
  49. private Set<GruppiToUser> gruppiToUsers;
  50.  
  51. //bi-directional many-to-one association to RuoliToUser
  52. @OneToMany(mappedBy="user")
  53. private Set<RuoliToUser> ruoliToUsers;
  54.  
  55. public User() {
  56. }
  57.  
  58. public long getId() {
  59. return this.id;
  60. }
  61.  
  62. public void setId(long id) {
  63. this.id = id;
  64. }
  65.  
  66. public String getDisplay() {
  67. return this.display;
  68. }
  69.  
  70. public void setDisplay(String display) {
  71. this.display = display;
  72. }
  73.  
  74. public String getEncryptionMode() {
  75. return this.encryptionMode;
  76. }
  77.  
  78. public void setEncryptionMode(String encryptionMode) {
  79. this.encryptionMode = encryptionMode;
  80. }
  81.  
  82. public Date getFirstLogin() {
  83. return this.firstLogin;
  84. }
  85.  
  86. public void setFirstLogin(Date firstLogin) {
  87. this.firstLogin = firstLogin;
  88. }
  89.  
  90. public Date getLastLogin() {
  91. return this.lastLogin;
  92. }
  93.  
  94. public void setLastLogin(Date lastLogin) {
  95. this.lastLogin = lastLogin;
  96. }
  97.  
  98. public String getPassword() {
  99. return this.password;
  100. }
  101.  
  102. public void setPassword(String password) {
  103. this.password = password;
  104. }
  105.  
  106. public String getUsername() {
  107. return this.username;
  108. }
  109.  
  110. public void setUsername(String username) {
  111. this.username = username;
  112. }
  113.  
  114. public Set<GruppiToUser> getGruppiToUsers() {
  115. return this.gruppiToUsers;
  116. }
  117.  
  118. public void setGruppiToUsers(Set<GruppiToUser> gruppiToUsers) {
  119. this.gruppiToUsers = gruppiToUsers;
  120. }
  121.  
  122. public Set<RuoliToUser> getRuoliToUsers() {
  123. return this.ruoliToUsers;
  124. }
  125.  
  126. public void setRuoliToUsers(Set<RuoliToUser> ruoliToUsers) {
  127. this.ruoliToUsers = ruoliToUsers;
  128. }
  129.  
  130. }
Add Comment
Please, Sign In to add comment