Skip to content

Make SessionHolder publicly accessible for external resource management #35799

@rstoyanchev

Description

@rstoyanchev

SessionHolder has become package private in main for 7.0, which leaves no obvious alternative to update code like HibernateFlowExecutionListener in Web Flow, which calls bindResource of TransactionSynchronizationManager.

Using the base class EntityManagerHolder also doesn't work because HibernateTransactionManager expects SessionHolder in doGetTransaction and throws a ClassCastException.

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions