Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.project.app.registration;
- import javax.validation.constraints.NotEmpty;
- import javax.validation.constraints.NotNull;
- public class UserDto{
- @NotNull
- @NotEmpty
- private String userName;
- @NotNull
- @NotEmpty
- private String password;
- private String matchingPassword;
- @NotNull
- @NotEmpty
- private String email;
- public String getUserName() {
- return userName;
- }
- public String getEmail() {
- return email;
- }
- public String getMatchingPassword() {
- return matchingPassword;
- }
- public String getPassword() {
- return password;
- }
- public void setEmail(String email) {
- this.email = email;
- }
- public void setMatchingPassword(String matchingPassword) {
- this.matchingPassword = matchingPassword;
- }
- public void setPassword(String password) {
- this.password = password;
- }
- public void setUserName(String userName) {
- this.userName = userName;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement