Skip to content

Commit

Permalink
Merge pull request wildfly#18544 from marko-bekhta/dep/WFLY-20133-val…
Browse files Browse the repository at this point in the history
…idator

WFLY-20133 Upgrade Hibernate Validator to 9.0.0.CR1 in WildFly preview / WFLY-20132 Upgrade Hibernate Validator to 8.0.2.Final
  • Loading branch information
bstansberry authored Dec 17, 2024
2 parents 31345a1 + b4c40a9 commit 9088136
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion boms/preview-ee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<version.org.jboss.resteasy>7.0.0.Alpha4</version.org.jboss.resteasy>
<version.org.jboss.weld.weld>6.0.0.Final</version.org.jboss.weld.weld>
<version.org.jboss.weld.weld-api>6.0.Final</version.org.jboss.weld.weld-api>
<version.org.hibernate.validator>9.0.0.Beta2</version.org.hibernate.validator>
<version.org.hibernate.validator>9.0.0.CR1</version.org.hibernate.validator>
<version.org.wildfly.security.jakarta.elytron-ee>4.0.0.Beta1</version.org.wildfly.security.jakarta.elytron-ee>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@
<version.org.hibernate.commons.annotations>7.0.3.Final</version.org.hibernate.commons.annotations>
<version.org.hibernate>6.6.3.Final</version.org.hibernate>
<version.org.hibernate.search>7.2.2.Final</version.org.hibernate.search>
<version.org.hibernate.validator>8.0.1.Final</version.org.hibernate.validator>
<version.org.hibernate.validator>8.0.2.Final</version.org.hibernate.validator>
<version.org.hornetq>2.4.11.Final</version.org.hornetq>
<version.org.infinispan>15.0.11.Final</version.org.infinispan>
<version.org.infinispan.protostream>5.0.12.Final</version.org.infinispan.protostream>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import jakarta.validation.Valid;
import jakarta.validation.constraints.AssertTrue;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.group.GroupSequenceProvider;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
package org.jboss.as.test.integration.beanvalidation.hibernate.validator;

import org.hibernate.validator.constraints.Email;
import jakarta.validation.constraints.Email;

/**
* @author Madhumita Sadhukhan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/
package org.jboss.as.test.integration.beanvalidation.hibernate.validator;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;

/**
* @author Madhumita Sadhukhan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
import jakarta.resource.Referenceable;
import jakarta.resource.spi.ResourceAdapter;
import jakarta.resource.spi.ResourceAdapterAssociation;

import org.hibernate.validator.constraints.NotEmpty;
import jakarta.validation.constraints.NotEmpty;

/**
* Admin object implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
import jakarta.persistence.Inheritance;
import jakarta.persistence.InheritanceType;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;

import org.hibernate.envers.Audited;
import org.hibernate.envers.NotAudited;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

/**
* @author Madhumita Sadhukhan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import jakarta.persistence.Entity;
import jakarta.persistence.PrimaryKeyJoinColumn;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotBlank;

import org.hibernate.envers.Audited;
import org.hibernate.validator.constraints.NotBlank;

/**
* @author Madhumita Sadhukhan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void testConstraintValidationforJPA() throws NamingException, SQLExceptio
String stacktrace = w.toString();

if (Locale.getDefault().getLanguage().equals("en")) {
Assert.assertTrue(stacktrace.contains("interpolatedMessage='may not be empty', propertyPath=lastName, rootBeanClass=class org.jboss.as.test.integration.jpa.beanvalidation.SoccerPlayer"));
Assert.assertTrue(stacktrace.contains("interpolatedMessage='must not be empty', propertyPath=lastName, rootBeanClass=class org.jboss.as.test.integration.jpa.beanvalidation.SoccerPlayer"));
} else {
Assert.assertTrue(stacktrace.contains("propertyPath=lastName, rootBeanClass=class org.jboss.as.test.integration.jpa.beanvalidation.SoccerPlayer"));
}
Expand Down

0 comments on commit 9088136

Please sign in to comment.