Deprecate TransactionSynchronizationAdapter

Closes gh-21725
This commit is contained in:
Juergen Hoeller
2020-06-17 11:02:31 +02:00
parent d36407d585
commit 17cab9660c
12 changed files with 49 additions and 42 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ package org.springframework.orm.hibernate5;
import org.hibernate.Session;
import org.springframework.lang.Nullable;
import org.springframework.transaction.support.TransactionSynchronizationAdapter;
import org.springframework.transaction.support.TransactionSynchronization;
/**
* Simple synchronization adapter that propagates a {@code flush()} call
@@ -28,7 +28,7 @@ import org.springframework.transaction.support.TransactionSynchronizationAdapter
* @author Juergen Hoeller
* @since 4.2
*/
public class SpringFlushSynchronization extends TransactionSynchronizationAdapter {
public class SpringFlushSynchronization implements TransactionSynchronization {
private final Session session;