package io.swagger.models;
import java.util.List;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
public class HibernateBeanValidationsModel {
@NotNull
protected Long id;
@Min(13)
@Max(99)
protected Integer age;
@Length(min = 2, max = 20)
protected String username;
@Size(min = 6, max = 20)
protected String password;
@NotBlank
protected String passwordHint;
@Email
protected String email;
@DecimalMin(value = "0.1", inclusive = false)
protected Double minBalance;
@DecimalMax(value = "1000000", inclusive = false)
protected Double maxBalance;
@Range(min = 1900L, max = 2015L)
protected Integer birthYear;
@NotEmpty
protected String notEmptyString;
@NotEmpty
protected List<String> notEmptyArray;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getPasswordHint() {
return passwordHint;
}
public void setPasswordHint(String passwordHint) {
this.passwordHint = passwordHint;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Double getMinBalance() {
return minBalance;
}
public void setMinBalance(Double minBalance) {
this.minBalance = minBalance;
}
public Double getMaxBalance() {
return maxBalance;
}
public void setMaxBalance(Double maxBalance) {
this.maxBalance = maxBalance;
}
public Integer getBirthYear() {
return birthYear;
}
public void setBirthYear(Integer birthYear) {
this.birthYear = birthYear;
}
public String getNotEmptyString() {
return notEmptyString;
}
public void setNotEmptyString(String notEmptyString) {
this.notEmptyString = notEmptyString;
}
public List<String> getNotEmptyArray() {
return notEmptyArray;
}
public void setNotEmptyArray(List<String> notEmptyArray) {
this.notEmptyArray = notEmptyArray;
}
}