Removed deprecated SharedSessionContractImplementor.getTimestamp()
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
parent
291e755686
commit
91a1ff81f8
|
@ -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();
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue