6 - fix compilation errors in envers and osgi projects

This commit is contained in:
Andrea Boriero 2019-09-04 11:45:57 +01:00
parent 0acd11fae3
commit 20f2002269
2 changed files with 4 additions and 2 deletions

View File

@ -321,7 +321,7 @@ public class QueryBuilder {
query.setParameter(
paramValue.getKey(),
paramValue.getValue(),
new CustomType( new RevisionTypeType() )
new CustomType( new RevisionTypeType(), sessionFactory.getTypeConfiguration() )
);
}
else {

View File

@ -377,7 +377,9 @@ public class OsgiIntegrationTest {
Class impl = sfi.getServiceRegistry().getService( StrategySelector.class ).selectStrategyImplementor( Calendar.class, TestStrategyRegistrationProvider.GREGORIAN );
assertNotNull( impl );
BasicType basicType = sfi.getTypeResolver().basic( TestTypeContributor.NAME );
BasicType basicType = sfi.getTypeConfiguration()
.getBasicTypeRegistry()
.getRegisteredType( TestTypeContributor.NAME );
assertNotNull( basicType );
}