Guest User

Untitled

a guest
Nov 27th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. package in.springframework.blog.tutorials;
  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 fullname;
  15. private String username;
  16. private String password;
  17. private String email;
  18.  
  19.  
  20. public Long getId() {
  21. return id;
  22. }
  23.  
  24. public void setId(Long id) {
  25. this.id = id;
  26. }
  27.  
  28. public String getFullname() {
  29. return fullname;
  30. }
  31.  
  32. public void setFullname(String fullname) {
  33. this.fullname = fullname;
  34. }
  35.  
  36. public String getUsername() {
  37. return username;
  38. }
  39.  
  40. public void setUsername(String username) {
  41. this.username = username;
  42. }
  43.  
  44. public String getPassword() {
  45. return password;
  46. }
  47.  
  48. public void setPassword(String password) {
  49. this.password = password;
  50. }
  51.  
  52. public String getEmail() {
  53. return email;
  54. }
  55.  
  56. public void setEmail(String email) {
  57. this.email = email;
  58. }
  59. }
Add Comment
Please, Sign In to add comment