bean-validation
Why is the Bean validator throwing ConstraintViolationException on the not nullable but auto-generated id field?
ENTITY CLASS : public class MyUser implements Serializable { private static final long serialVersionUID = 1L;[详细]
2023-02-20 19:05 分类:问答Bean Validation for @Past or today?
Here\'s a simple source, stating that this date must be in the past using Bean开发者_StackOverflow中文版 Validation :[详细]
2023-02-18 21:15 分类:问答Bean Validation + Resource Bundle ideas?
Here is what i want to be able to do with bean validation in my JPA entities : Instead of @NotNull, i would like to do @NotNull(message=\"keyInMyResourceBundleFile\")[详细]
2023-02-18 18:00 分类:问答Bean Validation's resourcebundle parameterization possibility in JSF 2?
Using the resourcebundle with BV in JSF 2 would look something like this : public class UserBean { @Size(min=13, message=\"{creditcard.length}\")[详细]
2023-02-18 15:01 分类:问答JSF 2 reusing the validation defined in the JPA entities?
Let\'s start with an example : In my JPA entity public class User { @Pattern(\"^([0-9a-zA-Z]([-.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9})$\", message=\"invalidEmailResou[详细]
2023-02-18 11:52 分类:问答Is there a way using javax.validation to validate that a date is larger / less than or between specific dates?
I know of @Future and @Past开发者_运维百科 but they compare to the local VM system date. What am I missing?I don\'t think there is an annotation in javax.validation that does what you want, but you ca[详细]
2023-02-17 15:41 分类:问答GroupSequence and ordered evaluation in JSR 303
In our application we have such a case: Constraints should be evaluated in particular order. (cheap to expensive)[详细]
2023-02-16 22:40 分类:问答Automatically return to input form on @Valid failure
I have the following method in my controller: @RequestMapping(value = \"/status\", method = RequestMethod.POST)[详细]
2023-02-16 09:27 分类:问答How to validate date using Custom date proprty editor in spring MVC
I have mad开发者_JAVA技巧e the Date in in my java Class and this is the code i have used in controller[详细]
2023-02-15 17:00 分类:问答How can I set default constraints on all my properties in hibernate validator
I want to automatically put @Valid constraints on all my properties. Example: public class Adult extends MyBeanValidationAbstractClass{[详细]
2023-02-15 07:50 分类:问答