package example.controllers.forms;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class UserForm implements Serializable {

    public static final long serialVersionUID = 1L;

    @NotBlank
    private String name;

    @NotBlank
    private String email;

    @NotBlank
    private String password;

    @NotBlank
    private String passwordConfirmation;
}

@@ -82,16 +82,117 @@
 ructor;%0A
+import org.hibernate.validator.constraints.Email;%0Aimport org.hibernate.validator.constraints.Length;%0A
 import o
@@ -395,32 +395,45 @@
 = 1L;%0A%0A    @
-NotBlank
+Length(min=1, max=50)
 %0A    private
@@ -448,32 +448,57 @@
 name;%0A%0A    @
-NotBlank
+Length(min=6, max=255)%0A    @Email
 %0A    private

add validations