Blame view

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