# Hibernate Validator

**URL:** https://discourse.hibernate.org/c/hibernate-validator/7.md?page=2

[Latest](https://discourse.hibernate.org/latest.md) · [Categories](https://discourse.hibernate.org/categories.md)

**Page:** 3

---

## [Validating objects that need to be dependency injected](https://discourse.hibernate.org/t/validating-objects-that-need-to-be-dependency-injected/1674)

<div class="topic-metadata">

**Author:** [@baj](https://discourse.hibernate.org/u/baj)\
**Replies:** 1\
**Last updated:** [November 28, 2018, 10:17pm UTC](https://discourse.hibernate.org/t/validating-objects-that-need-to-be-dependency-injected/1674 "2018-11-28T22:17:40Z")

</div>

We have objects that live inside an AMF layer and through the application layer code, we are attempting to validate names using custom annotations; however, we are not using any dependency injection tools (as everything …

---

## [Multiple validators for one class](https://discourse.hibernate.org/t/multiple-validators-for-one-class/1752)

<div class="topic-metadata">

**Author:** [@michal.hlavac](https://discourse.hibernate.org/u/michal.hlavac)\
**Replies:** 1\
**Last updated:** [November 20, 2018, 6:16pm UTC](https://discourse.hibernate.org/t/multiple-validators-for-one-class/1752 "2018-11-20T18:16:58Z")

</div>

Hi, I would like to create multiple validators for one class. Use case for this scenario is that sometimes I need validate object recursively (deep validation) with all references but sometimes I need shallow validation …

---

## [Dynamic validation without annotations](https://discourse.hibernate.org/t/dynamic-validation-without-annotations/1688)

<div class="topic-metadata">

**Author:** [@cen](https://discourse.hibernate.org/u/cen)\
**Replies:** 2\
**Last updated:** [November 13, 2018, 1:27pm UTC](https://discourse.hibernate.org/t/dynamic-validation-without-annotations/1688 "2018-11-13T13:27:49Z")

</div>

I need to do a completely dynamic validation where I can specify to validate each field plus a set of constraints to validate the field against. I cannot use the annotations at all. I know validateProperty() exists but I…

---

## [Hibernate Validator 6.0.13.Final compatibility with Hibernate core 5.2.16.Final](https://discourse.hibernate.org/t/hibernate-validator-6-0-13-final-compatibility-with-hibernate-core-5-2-16-final/1651)

<div class="topic-metadata">

**Author:** [@taeil.ma](https://discourse.hibernate.org/u/taeil.ma)\
**Replies:** 2\
**Last updated:** [November 8, 2018, 6:20am UTC](https://discourse.hibernate.org/t/hibernate-validator-6-0-13-final-compatibility-with-hibernate-core-5-2-16-final/1651 "2018-11-08T06:20:55Z")

</div>

Is it safe to use the Hibernate Validator 6.0.13.Final with Hibernate 5.0.16 ? From what I’m not running into any errors so far (i.e. application compiles, runs and tests pass), but I’m not sure if they fit well toge…

---

## [Hibernate validation with Spring data rest repository](https://discourse.hibernate.org/t/hibernate-validation-with-spring-data-rest-repository/1452)

<div class="topic-metadata">

**Author:** [@biplab](https://discourse.hibernate.org/u/biplab)\
**Replies:** 0\
**Last updated:** [September 26, 2018, 6:43am UTC](https://discourse.hibernate.org/t/hibernate-validation-with-spring-data-rest-repository/1452 "2018-09-26T06:43:06Z")

</div>

I am trying to perform some operation in Spring data events HandleBeforeCreate/ HandleBeforeSave. Looks like with Spring data rest repository, hibernate validation (validation added with annotations like NotBlank) happen…

---

## [Validator 6.0.13 on Maven central?](https://discourse.hibernate.org/t/validator-6-0-13-on-maven-central/1295)

<div class="topic-metadata">

**Author:** [@andrei-ivanov](https://discourse.hibernate.org/u/andrei-ivanov)\
**Replies:** 5\
**Last updated:** [September 13, 2018, 9:14am UTC](https://discourse.hibernate.org/t/validator-6-0-13-on-maven-central/1295 "2018-09-13T09:14:22Z")

</div>

Hi, I’ve added a comment in the announcement post, but I don’t think it was noticed, so I’m asking here. Any ETA on when Validator 6.0.13 will reach Maven central? I don’t see it there yet.

---

## [Validator and CVE-2017-7536](https://discourse.hibernate.org/t/validator-and-cve-2017-7536/219)

<div class="topic-metadata">

**Author:** [@ddillard](https://discourse.hibernate.org/u/ddillard)\
**Replies:** 8\
**Last updated:** [September 6, 2018, 12:20pm UTC](https://discourse.hibernate.org/t/validator-and-cve-2017-7536/219 "2018-09-06T12:20:32Z")

</div>

I just saw that there is vulnerability CVE-2017-7536 against Validator. According to the link it affects the latest versions of 5.4 and 5.3. Per the releases page 5.4 is a stable (I’m reading that as supported) release…

---

## [Can I used hibernate-validator without depends on other jboss deps](https://discourse.hibernate.org/t/can-i-used-hibernate-validator-without-depends-on-other-jboss-deps/1270)

<div class="topic-metadata">

**Author:** [@Hoa\_Phan](https://discourse.hibernate.org/u/Hoa_Phan)\
**Replies:** 1\
**Last updated:** [August 22, 2018, 10:56am UTC](https://discourse.hibernate.org/t/can-i-used-hibernate-validator-without-depends-on-other-jboss-deps/1270 "2018-08-22T10:56:04Z")

</div>

Can I used hibernate-validator without depends on other jboss deps, namely: org.jboss.logmanager, org.jboss.marshalling,…

---

## [Integrating jersey with hibernate validator cdi](https://discourse.hibernate.org/t/integrating-jersey-with-hibernate-validator-cdi/1173)

<div class="topic-metadata">

**Author:** [@mulderbaba](https://discourse.hibernate.org/u/mulderbaba)\
**Replies:** 5\
**Last updated:** [August 13, 2018, 4:07pm UTC](https://discourse.hibernate.org/t/integrating-jersey-with-hibernate-validator-cdi/1173 "2018-08-13T16:07:52Z")

</div>

So I’m trying to get jersey working with hibernate validator in order to provide in order to provide cdi bean injection into constraint validators. to do this, in the ValidationBinder class of jersey, I tried to set the …

---

## [When using a @GroupSequenceProvider, why is it called 3 times? And why the first time with a null validation instance?](https://discourse.hibernate.org/t/when-using-a-groupsequenceprovider-why-is-it-called-3-times-and-why-the-first-time-with-a-null-validation-instance/873)

<div class="topic-metadata">

**Author:** [@pluttrell](https://discourse.hibernate.org/u/pluttrell)\
**Replies:** 5\
**Last updated:** [August 3, 2018, 3:58pm UTC](https://discourse.hibernate.org/t/when-using-a-groupsequenceprovider-why-is-it-called-3-times-and-why-the-first-time-with-a-null-validation-instance/873 "2018-08-03T15:58:32Z")

</div>

When using a @GroupSequenceProvider, why is it called 3 times? And why the first time with a null validation instance? Consider this class: @Data @AllArgsConstructor @GroupSequenceProvider(CarGroupSequenceProvider.cla…

---

## [Using Hibernate Validation with JPA in Karaf](https://discourse.hibernate.org/t/using-hibernate-validation-with-jpa-in-karaf/1098)

<div class="topic-metadata">

**Author:** [@sim085](https://discourse.hibernate.org/u/sim085)\
**Replies:** 1\
**Last updated:** [July 23, 2018, 12:39pm UTC](https://discourse.hibernate.org/t/using-hibernate-validation-with-jpa-in-karaf/1098 "2018-07-23T12:39:11Z")

</div>

Not sure if this is a hibernate validation, jpa or osgi issue but wonder if anyone here might have encountered this and solved it. While looking for a solution I came across this; https://docs.jboss.org/hibernate/stabl…

---

## [Add invalidValue to exception message if validation fails](https://discourse.hibernate.org/t/add-invalidvalue-to-exception-message-if-validation-fails/982)

<div class="topic-metadata">

**Author:** [@OBreidenbach](https://discourse.hibernate.org/u/OBreidenbach)\
**Replies:** 2\
**Last updated:** [June 28, 2018, 3:26pm UTC](https://discourse.hibernate.org/t/add-invalidvalue-to-exception-message-if-validation-fails/982 "2018-06-28T15:26:45Z")

</div>

If the bean validation fails the BeanValidationEventListener a ConstraintViolationException is thrown. Unfortunately the exception message does not contain the invalid value. I would be nice, if the invalid value was in…

---

## [GroupSequence combined with Valid does't work in all cases](https://discourse.hibernate.org/t/groupsequence-combined-with-valid-doest-work-in-all-cases/840)

<div class="topic-metadata">

**Author:** [@ronvoe](https://discourse.hibernate.org/u/ronvoe)\
**Replies:** 3\
**Last updated:** [May 28, 2018, 2:00pm UTC](https://discourse.hibernate.org/t/groupsequence-combined-with-valid-doest-work-in-all-cases/840 "2018-05-28T14:00:04Z")

</div>

Hello, I’m using GroupSequence to group constraints into simple and complex validations. My goal is, that the complex validations are only performed, when the validation of the simple constraints did succeed, so that t…

---

## [Using JPA in custom ConstraintValidator](https://discourse.hibernate.org/t/using-jpa-in-custom-constraintvalidator/647)

<div class="topic-metadata">

**Author:** [@abiuan](https://discourse.hibernate.org/u/abiuan)\
**Replies:** 1\
**Last updated:** [May 3, 2018, 9:58am UTC](https://discourse.hibernate.org/t/using-jpa-in-custom-constraintvalidator/647 "2018-05-03T09:58:23Z")

</div>

Hello, I’m writing a spring boot application. I need to create a custom ConstraintValidator that read a relational database. I’m already using JPA inside the application. The problem is that the Validator is created us…

---

## [HV000054: \[Type\] must be part of the redefined default group sequence](https://discourse.hibernate.org/t/hv000054-type-must-be-part-of-the-redefined-default-group-sequence/529)

<div class="topic-metadata">

**Author:** [@pluttrell](https://discourse.hibernate.org/u/pluttrell)\
**Replies:** 2\
**Last updated:** [April 11, 2018, 6:28pm UTC](https://discourse.hibernate.org/t/hv000054-type-must-be-part-of-the-redefined-default-group-sequence/529 "2018-04-11T18:28:24Z")

</div>

I’m trying to use a GroupSequenceProvider, based on a simplified version of what are in the docs, but am getting an error. Wondering if anyone knows what’s wrong. import javax.validation.constraints.NotEmpty; import org…

---

## [Custom index for ConstraintViolation propertyPath](https://discourse.hibernate.org/t/custom-index-for-constraintviolation-propertypath/517)

<div class="topic-metadata">

**Author:** [@abiuan](https://discourse.hibernate.org/u/abiuan)\
**Replies:** 1\
**Last updated:** [April 9, 2018, 8:25am UTC](https://discourse.hibernate.org/t/custom-index-for-constraintviolation-propertypath/517 "2018-04-09T08:25:25Z")

</div>

Hello, the result of ConstraintViolation.getPropertyPath() method is quite useful to identify where the violation occurs. It could be improved in case of collections in a hierarchy. In this case the path contains the nu…

---

## [Possible wrong validation for IPv4 on DomainNameUtil](https://discourse.hibernate.org/t/possible-wrong-validation-for-ipv4-on-domainnameutil/446)

<div class="topic-metadata">

**Author:** [@cat\_clan](https://discourse.hibernate.org/u/cat_clan)\
**Replies:** 1\
**Last updated:** [March 29, 2018, 9:38pm UTC](https://discourse.hibernate.org/t/possible-wrong-validation-for-ipv4-on-domainnameutil/446 "2018-03-29T21:38:16Z")

</div>

I was looking at the email validator and noticed an issue with the DomainNameUtil. The IP address validation pattern is set to “\[0-9\]{1,3}\\.\[0-9\]{1,3}\\.\[0-9\]{1,3}\\.\[0-9\]{1,3}”.This accepts IP address like 999.999.999.999…

---

## [Primefaces Chips Web Component - SizeValidatorForCharSequence](https://discourse.hibernate.org/t/primefaces-chips-web-component-sizevalidatorforcharsequence/374)

<div class="topic-metadata">

**Author:** [@Marcel](https://discourse.hibernate.org/u/Marcel)\
**Replies:** 4\
**Last updated:** [March 21, 2018, 10:19pm UTC](https://discourse.hibernate.org/t/primefaces-chips-web-component-sizevalidatorforcharsequence/374 "2018-03-21T22:19:40Z")

</div>

Hi! I’ve asked Primefaces team and the Primefaces Core Developer oriented me: “Try to ask the hibernate validator guys. It seems like it uses getter and the property and those types doesn’t match”. I have a CRUD and I …

---

## [Jboss.org Reference - buggy examples?](https://discourse.hibernate.org/t/jboss-org-reference-buggy-examples/263)

<div class="topic-metadata">

**Author:** [@Liam](https://discourse.hibernate.org/u/Liam)\
**Replies:** 1\
**Last updated:** [February 24, 2018, 2:42pm UTC](https://discourse.hibernate.org/t/jboss-org-reference-buggy-examples/263 "2018-02-24T14:42:59Z")

</div>

Hi. I started going over the reference page: https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html\_single/?v=6.0#validator-annotationprocessor-prerequisites And there seem to be some bugs in the code t…

---

## [LuhnCheck and ignoreNonDigitCharacters](https://discourse.hibernate.org/t/luhncheck-and-ignorenondigitcharacters/162)

<div class="topic-metadata">

**Author:** [@kkalmbach](https://discourse.hibernate.org/u/kkalmbach)\
**Replies:** 4\
**Last updated:** [February 2, 2018, 5:28pm UTC](https://discourse.hibernate.org/t/luhncheck-and-ignorenondigitcharacters/162 "2018-02-02T17:28:02Z")

</div>

I’m having an issue with the luhn check and want to know if I’m just using it wrong. When I specify to ignoreNonDigitCharacters and have a trailing non-digit character, the last character (which is a non-digit) gets pic…

[Previous page](https://discourse.hibernate.org/c/hibernate-validator/7.md?page=1)
