1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/java/jboss71/files/patch-JPALazyValidatorFactory.java
Dima Panov c982c3c246 - Add JBoss 7.1.3.Final application server to the zoo
PR:		173713
Submitted by:	Alexander Yerenkow <yerenkow AT gmail DOT com>
2012-12-14 14:18:50 +00:00

12 lines
960 B
Java

--- jpa/core/src/main/java/org/jboss/as/jpa/validator/JPALazyValidatorFactory.java.orig 2012-11-15 00:06:15.000000000 +0000
+++ jpa/core/src/main/java/org/jboss/as/jpa/validator/JPALazyValidatorFactory.java 2012-09-21 12:14:04.000000000 +0000
@@ -78,7 +78,7 @@ public class JPALazyValidatorFactory imp
try {
SecurityActions.setContextClassLoader(oldTCCL);
ConstraintMapping mapping = new ConstraintMapping();
- HibernateValidatorConfiguration config = Validation.byProvider(HibernateValidator.class).providerResolver(new JbossProviderResolver()).configure();
+ HibernateValidatorConfiguration config = Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class).providerResolver(new JbossProviderResolver()).configure();
config.addMapping(mapping);
ValidatorFactory factory = config.buildValidatorFactory();
return factory;