javax.persistence.TransactionRequiredException: Executing an update/delete query

Description

Executing an "update" query outside of a transaction using the code below was possible in Hibernate 5.1:

After moving from Hibernate 5.1 to 5.3, encountering the failure below:

I tried adding hibernate.allow_update_outside_transaction=true (mentioned in the 5.2 migration notes) to my persistence.xml but it didn't seem to make a difference.

Environment

None

Assignee

Andrea Boriero

Reporter

Stephen Fikes

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.1.16

Components

Affects versions

Priority

Major
Configure