hibernate-validator
Bean Validation: Receive EntityNotFoundException though have a constraint to validate entity
Technologies: Spring, Hibernate, JSR-303, JQuery Platform: Windows I am trying to implement @IdMustExist JSR-303 constraint. The purpose of the constraint is to check whether the entered id value exis[详细]
2023-02-07 18:35 分类:问答Invoke bean validation
I am using JSF 2 ,myfaces, hibernate-validator-4.1.0.Final.jar. I use hibernate-validator for validating values entered in form.[详细]
2023-02-06 21:34 分类:问答javax.validation: Receive an error 'No validator could be found for type:'
Framework: JQuery, Spring, Hibernate, Hibernate Validator(JSR-303 Bean Validation) Platform: Windows I am trying to define a custom constraint @IdMustExist using JSR 303-Bean Validati开发者_开发技巧o[详细]
2023-02-06 20:00 分类:问答Is there any configuration necessary to use Hibernate Validation custom messages
I\'m using the following class to validate my beans with Hibernate Validation.It works great.It\'s basically the listener found here for JPA 1, converted to use to validate beans in my Spring controll[详细]
2023-02-02 16:54 分类:问答hibernate unique key validation
I have a field, say, user_name, that s开发者_运维技巧hould be unique in a table. What is the best way for validating it using Spring/Hibernate validation?One of the possible solutions is to create cu[详细]
2023-02-02 13:05 分类:问答JSR-303: Yet Another Cross-field Validation Problem
I have a @Money constraint that indicates the annotated Double property is, well, money. I wrote a ConstraintValidator that checks if a @Money property has a valid value, which depends on a Currency i[详细]
2023-02-01 03:48 分类:问答Hibernate validator: @Email accepts ask@stackoverflow as valid?
I\'m using the @Email annotation to validate an e-mail address. The issue I\'m having is that it\'s accepting things like ask@stackoverflow as a valid e-m开发者_高级运维ail address.[详细]
2023-01-30 16:54 分类:问答Hibernate validator: how to handle rollover? (28/14/2009 becomes 28/2/2010)
I\'m using the hibernate validator to validate my forms. I\'m having the \"problem\" that the 9th of the 14th month becomes the second month in the next year. (just en example of a scenario).[详细]
2023-01-29 23:15 分类:问答Order <form:error path="*"/> messages so their order isn't random
When I do a <form:errors path=\"*\"/> my errors are always shown in a random order. Now I was wondering how I could display them in a set order.[详细]
2023-01-28 02:20 分类:问答spring validation: cleanest way to makeup accompanying labels of the validated input
I\'m validating the input field that\'s bound to path. I\'m using hibernate-validator 4 for this. Now I\'d like to highlight the age label so it pops out of the page (bold, red colour etc.).[详细]
2023-01-27 19:41 分类:问答