package com.github.cstroe.spendhawk.dto;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Validated
@Data
public class AddAccountForm {
    @NotNull
    @Min(value = 1, message = "UserDao ID is invalid.")
    private Long userId = -1L;

    @NotNull
    @Size(min = 1, message = "AccountDao name must be at least 1 charater long.")
    @Pattern(regexp = "[a-zA-Z][a-zA-Z0-9 ]*[a-zA-Z0-9]?",
            message = "AccountDao name must contain only alphanumeric charaters, and spaces, and start with a letter.")
    private String accountName = "";
}

@@ -385,19 +385,16 @@
  = %22User
-Dao
  ID is i
@@ -477,35 +477,32 @@
 ssage = %22Account
-Dao
  name must be at
@@ -515,16 +515,17 @@
  1 chara
+c
 ter long
@@ -621,11 +621,8 @@
 ount
-Dao
  nam
@@ -659,16 +659,17 @@
 ic chara
+c
 ters, an

Fix IntelliJ's text refactor.