Advertisement
hoffmannm

changeDataForm-Java

Dec 16th, 2013
1,296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package geldscheinzypresse.usermanagement.model.validation;
  2.  
  3. import org.hibernate.validator.constraints.NotEmpty;
  4.  
  5. import javax.validation.constraints.*;
  6.  
  7.  
  8. public class ChangeDataForm {
  9.  
  10.     @NotEmpty(message = "{RegistrationForm.prename.NotEmpty}")
  11.     private String prename;
  12.    
  13.     @NotEmpty(message = "{RegistrationForm.name.NotEmpty}")
  14.     private String name;
  15.    
  16.     @Min(18)
  17.     private int age;
  18.  
  19.     @NotEmpty(message = "{RegistrationForm.city.NotEmpty}")
  20.     private String city;
  21.    
  22.     @Size(min=5, max=5)
  23.     private String zip;
  24.    
  25.     @NotEmpty(message = "{RegistrationForm.street.NotEmpty}")
  26.     private String street;
  27.    
  28.     @NotEmpty(message = "{RegistrationForm.nickname.NotEmpty}")
  29.     private String nickname;
  30.    
  31.     public String getPrename() {
  32.         return prename;
  33.     }
  34.  
  35.     public void setPrename(String prename) {
  36.         this.prename = prename;
  37.     }
  38.  
  39.     public String getName() {
  40.         return name;
  41.     }
  42.  
  43.     public void setName(String name) {
  44.         this.name = name;
  45.     }
  46.  
  47.     public int getAge() {
  48.         return age;
  49.     }
  50.  
  51.     public void setAge(int age) {
  52.         this.age = age;
  53.     }
  54.  
  55.     public String getCity() {
  56.         return city;
  57.     }
  58.  
  59.     public void setCity(String city) {
  60.         this.city = city;
  61.     }
  62.  
  63.     public String getZip() {
  64.         return zip;
  65.     }
  66.  
  67.     public void setZip(String zip) {
  68.         this.zip = zip;
  69.     }
  70.  
  71.     public String getStreet() {
  72.         return street;
  73.     }
  74.  
  75.     public void setStreet(String street) {
  76.         this.street = street;
  77.     }
  78.  
  79.     public String getNickname() {
  80.         return nickname;
  81.     }
  82.  
  83.     public void setNickname(String nickname) {
  84.         this.nickname = nickname;
  85.     }
  86.  
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement