Make custom hibernate validation annotation for email existence
问题 i was wondering if it's possible to make custom hibernate validation annotation that will check in the database if the email exist or not (call dao method and return true if the email exist) so i can do something like: @NotBlank(message = "email is required") @Email(message = "{invalid.email}") @EmailExist(message = "{email.exist}") @Column(name = "email", length = 155, nullable = false) private String email; please advise with a sample if possible, thanks in advance. 回答1: Yes it should be