hibernate.transaction.auto_close_session throws "Session/EntityManager is closed"

Description

If we set the property hibernate.transaction.auto_close_session = true, Hibernate throws the following exception:

Setting to false, no error happens. Any idea?

Environment

Spring, Spring Boot, Spring Data, Hibernate

Activity

Show:
BrazilM
December 7, 2016, 1:28 PM

Adding the Hibernate dependency and setting the property hibernate.transaction.auto_close_session = true and you can replicate this error.

Andrea Boriero
January 16, 2017, 5:18 PM

Hi Bhh,

can u please provide a failing test.

Thanks

Assignee

Andrea Boriero

Reporter

BrazilM

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure