From 2690835f276ba16c191a8e793f81155d9f4c3464 Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Tue, 21 Jun 2016 12:26:56 -0700 Subject: [PATCH] HHH-8999 : Changed references to SharedSessionContractImplementor to SessionImplementor (cherry picked from commit 8bc779ef928ae8905fe3f4bda05ddc17e639b3fc) --- .../hibernate/engine/spi/NonSortedExecutableListTest.java | 2 +- .../test/id/usertype/UserTypeComparableIdTest.java | 6 +++--- .../test/id/usertype/UserTypeNonComparableIdTest.java | 7 +++---- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/engine/spi/NonSortedExecutableListTest.java b/hibernate-core/src/test/java/org/hibernate/engine/spi/NonSortedExecutableListTest.java index a20ff803eb..2a4188eeb4 100644 --- a/hibernate-core/src/test/java/org/hibernate/engine/spi/NonSortedExecutableListTest.java +++ b/hibernate-core/src/test/java/org/hibernate/engine/spi/NonSortedExecutableListTest.java @@ -88,7 +88,7 @@ public class NonSortedExecutableListTest extends BaseUnitTestCase { } @Override - public void afterDeserialize(SharedSessionContractImplementor session) { + public void afterDeserialize(SessionImplementor session) { this.afterDeserializeCalled = true; } diff --git a/hibernate-core/src/test/java/org/hibernate/test/id/usertype/UserTypeComparableIdTest.java b/hibernate-core/src/test/java/org/hibernate/test/id/usertype/UserTypeComparableIdTest.java index 16ce89e47d..eb27ad4a1b 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/id/usertype/UserTypeComparableIdTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/id/usertype/UserTypeComparableIdTest.java @@ -25,7 +25,7 @@ import org.hibernate.annotations.Type; import org.hibernate.annotations.TypeDef; import org.hibernate.cfg.AvailableSettings; import org.hibernate.cfg.Configuration; -import org.hibernate.engine.spi.SharedSessionContractImplementor; +import org.hibernate.engine.spi.SessionImplementor; import org.hibernate.testing.TestForIssue; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; import org.hibernate.type.LongType; @@ -142,7 +142,7 @@ public class UserTypeComparableIdTest extends BaseCoreFunctionalTestCase { public Object nullSafeGet( ResultSet resultSet, String[] names, - SharedSessionContractImplementor sessionImplementor, + SessionImplementor sessionImplementor, Object o) throws HibernateException, SQLException { Long value = resultSet.getLong( names[0] ); @@ -154,7 +154,7 @@ public class UserTypeComparableIdTest extends BaseCoreFunctionalTestCase { PreparedStatement preparedStatement, Object value, int index, - SharedSessionContractImplementor sessionImplementor) throws HibernateException, SQLException { + SessionImplementor sessionImplementor) throws HibernateException, SQLException { CustomId customId = (CustomId) value; if ( customId == null ) { diff --git a/hibernate-core/src/test/java/org/hibernate/test/id/usertype/UserTypeNonComparableIdTest.java b/hibernate-core/src/test/java/org/hibernate/test/id/usertype/UserTypeNonComparableIdTest.java index 48ea325ff3..facff35492 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/id/usertype/UserTypeNonComparableIdTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/id/usertype/UserTypeNonComparableIdTest.java @@ -10,7 +10,6 @@ import java.io.Serializable; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; -import java.util.Comparator; import javax.persistence.Column; import javax.persistence.Entity; @@ -23,7 +22,7 @@ import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.annotations.Type; import org.hibernate.annotations.TypeDef; -import org.hibernate.engine.spi.SharedSessionContractImplementor; +import org.hibernate.engine.spi.SessionImplementor; import org.hibernate.testing.TestForIssue; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; import org.hibernate.type.LongType; @@ -131,7 +130,7 @@ public class UserTypeNonComparableIdTest extends BaseCoreFunctionalTestCase { public Object nullSafeGet( ResultSet resultSet, String[] names, - SharedSessionContractImplementor sessionImplementor, + SessionImplementor sessionImplementor, Object o) throws HibernateException, SQLException { Long value = resultSet.getLong( names[0] ); @@ -143,7 +142,7 @@ public class UserTypeNonComparableIdTest extends BaseCoreFunctionalTestCase { PreparedStatement preparedStatement, Object value, int index, - SharedSessionContractImplementor sessionImplementor) throws HibernateException, SQLException { + SessionImplementor sessionImplementor) throws HibernateException, SQLException { CustomId customId = (CustomId) value; if ( customId == null ) {