hibernate5 廢棄了這些注解
Hibernate Validator驗證框架中@NotEmpty、@NotBlank、@NotNull的主要使用情況
@NotEmpty 用在集合類上面
@NotBlank 用在String上面
@NotNull 用在基本類型上