HHH-4084 Corrected test compiling error

This commit is contained in:
Brett Meyer 2013-02-14 17:37:45 -05:00
parent 7c6d65f938
commit 97770fe6a9
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public class UniqueConstraintValidationTest extends BaseUnitTestCase {
cfg.addAnnotatedClass(entity);
cfg.buildMappings();
ServiceRegistryImplementor serviceRegistry = (ServiceRegistryImplementor) new StandardServiceRegistryBuilder()
.applySettings(cfg.getProperties()).buildServiceRegistry();
.applySettings(cfg.getProperties()).build();
cfg.buildSessionFactory(serviceRegistry);
}