Guest User

Untitled

a guest
Nov 18th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. public class Customer implements java.io.Serializable {
  2.  
  3. private Long id;
  4. @NotBlank
  5. @Length(max = 80)
  6. private String firstName;
  7.  
  8. @NotBlank
  9. @Length(max = 80)
  10. private String lastName;
  11.  
  12. @NotBlank
  13. @Length(max = 80)
  14. private String phone;
  15.  
  16. @NotBlank
  17. @Email
  18. @Length(max = 80)
  19. private String email;
  20.  
  21. private Date memberSince;
  22.  
  23. @NotBlank
  24. @Length(max = 10, min = 5, message = "The username must be between 5 and 10 characters")
  25. private String username;
  26.  
  27. @NotBlank
  28. @Length(max = 10, min = 5, message = "The password must be between 5 and 10 characters")
  29. private String password;
  30.  
  31.  
  32. public String getFirstName() {
  33. return this.firstName;
  34. }
  35.  
  36. public void setFirstName(String firstName) {
  37. this.firstName = firstName;
  38. }
  39.  
  40.  
  41. public String getLastName() {
  42. return this.lastName;
  43. }
  44.  
  45. public void setLastName(String lastName) {
  46. this.lastName = lastName;
  47. }
  48.  
  49.  
  50. public String getPhone() {
  51. return phone;
  52. }
  53.  
  54. public void setPhone(String phone) {
  55. this.phone = phone;
  56. }
  57.  
  58.  
  59. public String getEmail() {
  60. return email;
  61. }
  62.  
  63. public void setEmail(String email) {
  64. this.email = email;
  65. }
  66.  
  67.  
  68. public String getUsername() {
  69. return username;
  70. }
  71.  
  72. public void setUsername(String username) {
  73. this.username = username;
  74. }
  75.  
  76. public String getPassword() {
  77. return password;
  78. }
  79.  
  80. public void setPassword(String password) {
  81. this.password = password;
  82. }
Add Comment
Please, Sign In to add comment