Advertisement
Guest User

Untitled

a guest
May 30th, 2018
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. package com.example.app.model;
  2.  
  3. import com.example.app.Annotations.isPasswordMatching;
  4. import com.example.app.entity.Event;
  5.  
  6. import javax.validation.constraints.Size;
  7. import java.util.HashSet;
  8. import java.util.Set;
  9.  
  10. @isPasswordMatching
  11. public class RegistrationModel {
  12.  
  13. @Size(min = 5, max = 100, message = "Username too short")
  14. private String username;
  15.  
  16. @Size(min = 5, max = 150, message = "Password too short")
  17. private String password;
  18.  
  19. private String confirmed_password;
  20. private String email;
  21. private Set<Event> events = new HashSet<>();
  22.  
  23. public Set<Event> getEvents() {
  24. return events;
  25. }
  26.  
  27. public void setEvents(Set<Event> events) {
  28. this.events = events;
  29. }
  30.  
  31. public String getUsername() {
  32. return username;
  33. }
  34.  
  35. public void setUsername(String username) {
  36. this.username = username;
  37. }
  38.  
  39. public String getPassword() {
  40. return password;
  41. }
  42.  
  43. public void setPassword(String password) {
  44. this.password = password;
  45. }
  46.  
  47. public String getConfirmed_password() {
  48. return confirmed_password;
  49. }
  50.  
  51. public void setConfirmed_password(String confirmed_password) {
  52. this.confirmed_password = confirmed_password;
  53. }
  54.  
  55. public String getEmail() {
  56. return email;
  57. }
  58.  
  59. public void setEmail(String email) {
  60. this.email = email;
  61. }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement