Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.04 KB | None | 0 0
  1. package com.project.app.registration;
  2.  
  3. import javax.validation.constraints.NotEmpty;
  4. import javax.validation.constraints.NotNull;
  5.  
  6. public class UserDto{
  7.     @NotNull
  8.     @NotEmpty
  9.     private String userName;
  10.  
  11.     @NotNull
  12.     @NotEmpty
  13.     private String password;
  14.     private String matchingPassword;
  15.  
  16.     @NotNull
  17.     @NotEmpty
  18.     private String email;
  19.  
  20.     public String getUserName() {
  21.  
  22.         return userName;
  23.     }
  24.  
  25.     public String getEmail() {
  26.  
  27.         return email;
  28.     }
  29.  
  30.     public String getMatchingPassword() {
  31.  
  32.         return matchingPassword;
  33.     }
  34.  
  35.     public String getPassword() {
  36.  
  37.         return password;
  38.     }
  39.  
  40.     public void setEmail(String email) {
  41.         this.email = email;
  42.     }
  43.  
  44.     public void setMatchingPassword(String matchingPassword) {
  45.  
  46.         this.matchingPassword = matchingPassword;
  47.     }
  48.  
  49.     public void setPassword(String password) {
  50.         this.password = password;
  51.     }
  52.  
  53.     public void setUserName(String userName) {
  54.  
  55.         this.userName = userName;
  56.     }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement