UserForm.java
586 Bytes
package fr.plil.sio.web.mvc;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
public class UserForm {
@NotNull
@Size(min = 3, max = 16)
private String username;
@NotNull
@Size(min = 4)
private String password;
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;
}
}