Skip to content

Commit

Permalink
updated remaining hibernate integrators for #302 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobe91 committed Dec 14, 2016
1 parent 0198ffa commit d8e659b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ public void testValuesEntityFunctionInCte() {
}

@Test
// NOTE: Entity joins are supported since Hibernate 5.1, Datanucleus 5 and latest Eclipselink
@Category({ NoHibernate42.class, NoHibernate43.class, NoHibernate50.class, NoDatanucleus.class, NoEclipselink.class, NoOpenJPA.class })
@Category({ NoDatanucleus.class, NoEclipselink.class, NoOpenJPA.class })
public void testValuesEntityFunctionWithCteEntity() {
CriteriaBuilder<Tuple> cb = cbf.create(em, Tuple.class);
cb.setProperty(ConfigurationProperties.VALUES_CLAUSE_FILTER_NULLS, "false");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void integrate(Configuration configuration, SessionFactoryImplementor ses
}

serviceRegistry.locateServiceBinding(PersisterClassResolver.class).setService(new CustomPersisterClassResolver());
serviceRegistry.locateServiceBinding(Database.class).setService(new SimpleDatabase(configuration.getTableMappings()));
serviceRegistry.locateServiceBinding(Database.class).setService(new SimpleDatabase(configuration.getTableMappings(), sessionFactory.getDialect(), configuration.buildMapping()));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void integrate(Configuration configuration, SessionFactoryImplementor ses
}

serviceRegistry.locateServiceBinding(PersisterClassResolver.class).setService(new CustomPersisterClassResolver());
serviceRegistry.locateServiceBinding(Database.class).setService(new SimpleDatabase(configuration.getTableMappings()));
serviceRegistry.locateServiceBinding(Database.class).setService(new SimpleDatabase(configuration.getTableMappings(), sessionFactory.getDialect(), configuration.buildMapping()));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void integrate(Metadata metadata, SessionFactoryImplementor sessionFactor
}

serviceRegistry.locateServiceBinding(PersisterClassResolver.class).setService(new CustomPersisterClassResolver());
serviceRegistry.locateServiceBinding(Database.class).setService(new SimpleDatabase(metadata.getDatabase().getDefaultNamespace().getTables().iterator()));
serviceRegistry.locateServiceBinding(Database.class).setService(new SimpleDatabase(metadata.getDatabase().getDefaultNamespace().getTables().iterator(), sessionFactory.getJdbcServices().getDialect(), metadata));
}

@Override
Expand Down

0 comments on commit d8e659b

Please sign in to comment.