Removed deprecated SharedSessionContractImplementor.getTimestamp()

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2022-03-08 23:56:16 +01:00 committed by Steve Ebersole
parent 291e755686
commit 91a1ff81f8
3 changed files with 0 additions and 16 deletions

View File

@ -154,11 +154,6 @@ public class SessionDelegatorBaseImpl implements SessionImplementor {
return delegate.immediateLoad( entityName, id );
}
@Override
public long getTimestamp() {
return delegate.getTimestamp();
}
@Override
public SessionFactoryImplementor getFactory() {
return delegate.getFactory();

View File

@ -192,14 +192,6 @@ public interface SharedSessionContractImplementor
*/
long getTransactionStartTimestamp();
/**
* @deprecated Use {@link #getTransactionStartTimestamp()} instead.
*/
@Deprecated(since = "5.3")
default long getTimestamp() {
return getTransactionStartTimestamp();
}
/**
* The current CacheTransactionContext associated with the Session. This may
* return {@code null} when the Session is not currently part of a transaction.

View File

@ -113,8 +113,6 @@ public class DynamicFilterTest extends BaseNonConfigCoreFunctionalTestCase {
CollectionCacheEntry cachedData = fromSession(
session -> {
long ts = session.getTimestamp();
// Force a collection into the second level cache, with its non-filtered elements
Salesperson sp = session.load( Salesperson.class, testData.steveId );
Hibernate.initialize( sp.getOrders() );
@ -136,7 +134,6 @@ public class DynamicFilterTest extends BaseNonConfigCoreFunctionalTestCase {
inSession(
session -> {
long ts = session.getTimestamp();
session.enableFilter( "fulfilledOrders" ).setParameter( "asOfDate", testData.lastMonth.getTime() );
Salesperson sp = (Salesperson) session.createQuery( "from Salesperson as s where s.id = :id" )
.setParameter( "id", testData.steveId )