Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package geldscheinzypresse.usermanagement.model.validation;
- import org.hibernate.validator.constraints.NotEmpty;
- import javax.validation.constraints.*;
- public class ChangeDataForm {
- @NotEmpty(message = "{RegistrationForm.prename.NotEmpty}")
- private String prename;
- @NotEmpty(message = "{RegistrationForm.name.NotEmpty}")
- private String name;
- @Min(18)
- private int age;
- @NotEmpty(message = "{RegistrationForm.city.NotEmpty}")
- private String city;
- @Size(min=5, max=5)
- private String zip;
- @NotEmpty(message = "{RegistrationForm.street.NotEmpty}")
- private String street;
- @NotEmpty(message = "{RegistrationForm.nickname.NotEmpty}")
- private String nickname;
- public String getPrename() {
- return prename;
- }
- public void setPrename(String prename) {
- this.prename = prename;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public int getAge() {
- return age;
- }
- public void setAge(int age) {
- this.age = age;
- }
- public String getCity() {
- return city;
- }
- public void setCity(String city) {
- this.city = city;
- }
- public String getZip() {
- return zip;
- }
- public void setZip(String zip) {
- this.zip = zip;
- }
- public String getStreet() {
- return street;
- }
- public void setStreet(String street) {
- this.street = street;
- }
- public String getNickname() {
- return nickname;
- }
- public void setNickname(String nickname) {
- this.nickname = nickname;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement