From e6fe44f973f685145bfbb5778d74e4ddd8fdee0c Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Wed, 10 Aug 2016 16:30:51 -0700 Subject: [PATCH] HHH-10978 : changes required to backport to 5.0 --- .../JoinTableWithDefaultSchemaTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/schemavalidation/JoinTableWithDefaultSchemaTest.java b/hibernate-core/src/test/java/org/hibernate/test/schemavalidation/JoinTableWithDefaultSchemaTest.java index 647fb3c920..46bd317440 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/schemavalidation/JoinTableWithDefaultSchemaTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/schemavalidation/JoinTableWithDefaultSchemaTest.java @@ -7,7 +7,6 @@ package org.hibernate.test.schemavalidation; import java.util.ArrayList; -import java.util.EnumSet; import java.util.List; import javax.persistence.Entity; @@ -28,7 +27,8 @@ import org.hibernate.testing.TestForIssue; import org.hibernate.testing.junit4.BaseUnitTestCase; import org.hibernate.tool.hbm2ddl.SchemaExport; import org.hibernate.tool.hbm2ddl.SchemaValidator; -import org.hibernate.tool.schema.TargetType; +import org.hibernate.tool.hbm2ddl.Target; + import org.junit.Test; /** @@ -52,14 +52,14 @@ public class JoinTableWithDefaultSchemaTest extends BaseUnitTestCase { metadata.validate(); // first create the schema... - new SchemaExport().create( EnumSet.of( TargetType.DATABASE ), metadata ); + new SchemaExport( metadata ).create(Target.EXPORT ); try { // validate the schema - new SchemaValidator().validate( metadata ); + new SchemaValidator( metadata ).validate(); } finally { // cleanup - new SchemaExport().drop( EnumSet.of( TargetType.DATABASE ), metadata ); + new SchemaExport( metadata ).drop( Target.EXPORT ); } } finally {