Skip to content

Commit

Permalink
Only integrate with Bean Validation if the HV extension is present
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Aug 20, 2020
1 parent d13a380 commit e68c5f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import org.hibernate.boot.spi.MetadataBuilderImplementor;
import org.hibernate.cache.internal.CollectionCacheInvalidator;
import org.hibernate.cfg.AvailableSettings;
import org.hibernate.cfg.beanvalidation.BeanValidationIntegrator;
import org.hibernate.dialect.Dialect;
import org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider;
import org.hibernate.engine.jdbc.dialect.spi.DialectFactory;
Expand Down Expand Up @@ -356,7 +355,6 @@ private Dialect extractDialect() {

private Collection<Integrator> getIntegrators() {
LinkedHashSet<Integrator> integrators = new LinkedHashSet<>();
integrators.add(new BeanValidationIntegrator());
integrators.add(new CollectionCacheInvalidator());

for (Class<? extends Integrator> integratorClass : additionalIntegrators) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.hibernate.cfg.beanvalidation.BeanValidationIntegrator

0 comments on commit e68c5f6

Please sign in to comment.