From 07539904ba7ff5cfbe60037dcb8f413945f98638 Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Thu, 14 Feb 2013 17:37:45 -0500 Subject: [PATCH] HHH-4084 Corrected test compiling error --- .../uniqueconstraint/UniqueConstraintValidationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/annotations/uniqueconstraint/UniqueConstraintValidationTest.java b/hibernate-core/src/test/java/org/hibernate/test/annotations/uniqueconstraint/UniqueConstraintValidationTest.java index ffab1eff4f..d6c8229201 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/annotations/uniqueconstraint/UniqueConstraintValidationTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/annotations/uniqueconstraint/UniqueConstraintValidationTest.java @@ -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); }