package jp.dip.arimodoki.model.dto;
import javax.validation.constraints.AssertTrue;
import javax.validation.constraints.Pattern;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;
import org.springframework.stereotype.Component;
@Scope("prototype")
@Component
public class User implements UserIf {
@NotBlank
private String myname = "";
@Range(min=0,max=150, message="最大最小は、{myForm.minmax}")
private int age = 0;
@NotBlank
@Pattern(regexp = "^[-0-9]*$",message = "数字と-だけょ。")
private String phone = "";
@NotBlank
@Email
private String email = "";
private String checkVal = "";
public String getMyname() {
return myname;
}
public void setMyname(String myname) {
this.myname = myname;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getCheckVal() {
return checkVal;
}
public void setCheckVals(String checkVal) {
this.checkVal = checkVal;
}
}
|