Hibernate + JCache does not remove entites from cache when entity is removed

Description

TestCase: https://github.com/c9pr3/hibernate-jcache-delete-bug

When using Hibernate with JCache and EHCache (same with Hazelcast), a deletion of an entity does not trigger the deletion of the cached entity - unless it is defined as <cache usage="transactional"/>.

BR

Environment

None

Status

Assignee

Unassigned

Reporter

Christian Scharmach

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure