Flushing enhanced entity with @Cache(usage = CacheConcurrencyStrategy.NONE) fails

Description

Given enhanced entity (enableLazyInitialization=true, everything else=false) using @Cache(usage = CacheConcurrencyStrategy.NONE)

When this entity is saved with enabled second level cache, the following exception is raised:

Using a difference CacheConcurrencyStrategy works fine.

Test case: https://github.com/nikowitt/hibernate-test-case-templates/tree/HHH-12587

Environment

None

Assignee

Chris Cranford

Reporter

Niko Wittenbeck

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure