Blame view

src/main/java/fr/plil/sio/web/mvc/UserForm.java 590 Bytes
0399d385   Julien Iguchi-Cartigny   Adding user form
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  package fr.plil.sio.web.mvc;
  
  import javax.validation.constraints.Max;
  import javax.validation.constraints.Min;
  import javax.validation.constraints.NotNull;
  
  public class UserForm {
  
      @Min(3)
      @Max(16)
      private String username;
  
      @NotNull
      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;
      }
  }