NotEmpty « Map « JPA Q&A





1. Why does Hibernate Validator @NotEmpty produce duplicate messages?    stackoverflow.com

While working with Hibernate Validator, I noticed that the @NotEmpty and @NotNull annotations produce duplicate messages in the InvalidValue array returned by getInvalidValues(...). If I specify a message like @NotEmpty(message = "My ...

2. Hibernate-validator: @NotEmpty does not work for null values    stackoverflow.com

I have annotated a String field with @NotEmpty tag. When I try to persist the entity with this filed's value "", it works fine. Mechanism detects the validation error and raises an ...

3. @NotNull or @NotEmpty not working    forum.hibernate.org

I got a strange behaviour by using hibernate validators: I take that: In my entity-Bean, I use the hibernate-validator-tags: Code: @Length(min=4) @NotNull(message="No Password") @Column(name = "PASSWORD", nullable = false) public String getPassword() { return password; } I integrated the validator in an xhtml-page by using the Seam-Tag . I got the following exception: Code: ... Caused by: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't ...