Hi,
I’m trying to implement L2 Cache support with Infinispan in my project. However, I encountered an issue with ManyToMany relations—after deleting one entity, the other side of the relation is not updated accordingly.
I’ve created a sample project to demonstrate the problem. It includes:
- The codebase
- A Docker Compose setup for the database with the schema
- IntelliJ IDEA HTTP requests that I use to perform actions (create, cache, remove, and request)
The idea is simple: there are User
and Role
entities with a ManyToMany relationship. Either entity can be removed, and the goal is to maintain a consistent cache.
Could someone help me investigate this issue?
PS code it there GitHub - bostandyksoft/hibernate-l2 (i can’t find a way to attach it)