Skip to content

Commit cb63383

Browse files
committed
Remove unused HibernateCallback interface
See gh-33750
1 parent 88a5b4e commit cb63383

File tree

2 files changed

+2
-58
lines changed

2 files changed

+2
-58
lines changed

spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateCallback.java

-55
This file was deleted.

spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateTransactionManager.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -771,10 +771,9 @@ protected void doCleanupAfterCompletion(Object transaction) {
771771
/**
772772
* Disconnect a pre-existing Hibernate Session on transaction completion,
773773
* returning its database connection but preserving its entity state.
774-
* <p>The default implementation calls the equivalent of {@link Session#disconnect()}.
775-
* Subclasses may override this with a no-op or with fine-tuned disconnection logic.
774+
* <p>The default implementation triggers a manual disconnect. Subclasses
775+
* may override this with a no-op or with fine-tuned disconnection logic.
776776
* @param session the Hibernate Session to disconnect
777-
* @see Session#disconnect()
778777
*/
779778
protected void disconnectOnCompletion(Session session) {
780779
if (session instanceof SessionImplementor sessionImpl) {

0 commit comments

Comments
 (0)