Guest User

Untitled

a guest
Feb 12th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. package com.example.lovinspring.entity;
  2.  
  3. import javax.persistence.Entity;
  4. import javax.persistence.GeneratedValue;
  5. import javax.persistence.GenerationType;
  6. import javax.persistence.Id;
  7.  
  8. @Entity
  9. public class User {
  10.  
  11. @Id
  12. @GeneratedValue(strategy = GenerationType.AUTO)
  13. private Long id;
  14. private String username;
  15. private String password;
  16. private String email;
  17.  
  18.  
  19. public Long getId() {
  20. return id;
  21. }
  22. public void setId(Long id) {
  23. this.id = id;
  24. }
  25. public String getUsername() {
  26. return username;
  27. }
  28. public void setUsername(String username) {
  29. this.username = username;
  30. }
  31. public String getPassword() {
  32. return password;
  33. }
  34. public void setPassword(String password) {
  35. this.password = password;
  36. }
  37. public String getEmail() {
  38. return email;
  39. }
  40. public void setEmail(String email) {
  41. this.email = email;
  42. }
  43. //Constructors
  44. public User() {
  45.  
  46. }
  47. public User(String username, String password, String email) {
  48. super();
  49. this.username = username;
  50. this.password = password;
  51. this.email = email;
  52. }
  53.  
  54.  
  55.  
  56. }
Add Comment
Please, Sign In to add comment