Guest User

Untitled

a guest
Apr 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. /**
  2. * The persistent class for the user database table.
  3. *
  4. */
  5. @Entity
  6. @NamedQuery(name="User.findAll", query="SELECT u FROM User u")
  7. public class User implements Serializable {
  8. private static final long serialVersionUID = 1L;
  9.  
  10. @Id
  11. @GeneratedValue(strategy=GenerationType.IDENTITY)
  12. private long iduser;
  13.  
  14. @Temporal(TemporalType.TIMESTAMP)
  15. private Date born;
  16.  
  17. private byte connected;
  18.  
  19. private Timestamp creation;
  20.  
  21. private String gender;
  22.  
  23. private String mail;
  24.  
  25. private String password;
  26.  
  27. private String pseudo;
  28.  
  29. //bi-directional one-to-one association to Profile
  30. @OneToOne(mappedBy="user", cascade={CascadeType.ALL})
  31. private Profile profile;
  32.  
  33. public User() {
  34. }
  35.  
  36. public long getIduser() {
  37. return this.iduser;
  38. }
  39.  
  40. public void setIduser(long iduser) {
  41. this.iduser = iduser;
  42. }
  43.  
  44. public Date getBorn() {
  45. return this.born;
  46. }
  47.  
  48. public void setBorn(Date born) {
  49. this.born = born;
  50. }
  51.  
  52. public byte getConnected() {
  53. return this.connected;
  54. }
  55.  
  56. public void setConnected(byte connected) {
  57. this.connected = connected;
  58. }
  59.  
  60. public Timestamp getCreation() {
  61. return this.creation;
  62. }
  63.  
  64. public void setCreation(Timestamp creation) {
  65. this.creation = creation;
  66. }
  67.  
  68. public String getGender() {
  69. return this.gender;
  70. }
  71.  
  72. public void setGender(String gender) {
  73. this.gender = gender;
  74. }
  75.  
  76. public String getMail() {
  77. return this.mail;
  78. }
  79.  
  80. public void setMail(String mail) {
  81. this.mail = mail;
  82. }
  83.  
  84. public String getPassword() {
  85. return this.password;
  86. }
  87.  
  88. public void setPassword(String password) {
  89. this.password = password;
  90. }
  91.  
  92. public String getPseudo() {
  93. return this.pseudo;
  94. }
  95.  
  96. public void setPseudo(String pseudo) {
  97. this.pseudo = pseudo;
  98. }
  99.  
  100. public Profile getProfile() {
  101. return this.profile;
  102. }
  103.  
  104. public void setProfile(Profile profile) {
  105. this.profile = profile;
  106. }
  107.  
  108. }
Add Comment
Please, Sign In to add comment