Hibernate 2nd level cache one to many issue

So I'm working on a Java EE project which integrates Hibernate Ehache plugin for 2nd level cache support. One of the project's entities is not in cache on purpose (not a good candidate), let's name it "A". "A" has many relations with in-cache entites and it works fine : when I retrieve an instance of "A" from the db, its relation entities are retrieved from the cache as expected.

The problem is about a relation on "A" with itself (to model a tree). So the relation is "many to one". I...

Read More »

By: StackOverFlow - Monday, 16 April

Related Posts