bean-validation
Configure Hibernate validation for bean
I need to perform validation based on SQL query result. Query is defined as annotation - as @NamedQuery in my entity bean.[详细]
2022-12-30 02:43 分类:问答How can I validate two or more fields in combination?
I\'m using JPA 2.0/Hibernate validation to validate my models. I now have a situation where the combination of two fields has to be validated:[详细]
2022-12-29 03:59 分类:问答Constraint Validation
I am using javax.validation.Validator and relevant classes for annotation based validation. Configuration<?> configuration = Validation.byDefaultProvider().configure();[详细]
2022-12-28 16:46 分类:问答Hibernate @OneToOne @NotNull
Is it valid to declare @OneToOne and @NotNull on both sides of a relationship, such as: class ChangeEntry[详细]
2022-12-28 15:15 分类:问答How do I import javax.validation into my Java SE project?
I\'m trying to add constra开发者_开发知识库ints checking, as described here How to specify the cardinality of a @OneToMany in EclipseLink/JPAHere are the dependencies I\'m using (with Maven):[详细]
2022-12-27 21:38 分类:问答JSR 303 Bean Validation + Javascript Client-Side Validation
What is the best way to perform client-side form validation using Javascript (with minimal code duplication) when using JSR 303 bean validation on the server side? I\'m currently u开发者_JS百科sing Sp[详细]
2022-12-24 06:39 分类:问答Bean Validation and error messages at .properties file
i am working on a JSF Projekt with Glassfish. My validation works well but i dont become a custom error message.[详细]
2022-12-20 04:54 分类:问答Using JSR 303 is it possible to generate validation.xml from annotations?
Let\'s开发者_如何学Go say I have an annotation JSR 303 class like this: class A { @NotNull private String b;[详细]
2022-12-17 21:33 分类:问答Not showing error messages when validated using @valid(JSR-303) in Spring MVC
I have specified<mvc:annotation-driven/> in dispatcher-servlet. I am not using @InitBinder. And I am using @valid annotation for validation in controller\'s method like[详细]
2022-12-16 09:22 分类:问答Cross field validation with Hibernate Validator (JSR 303)
Is there an implementation of (or third-party implementation for) cross field validation in Hibernate Validator 4.x? If not, what is the cleanest way to implement a cross field validator?[详细]
2022-12-15 04:00 分类:问答