We have an annotation-based metadata model. We defined one Fetchprofile for the Operator class and activated the second level cache
In the following test I tried to load the entity from the second level cache.
The first load is correct. The accessobject is not be loaded. After this I tried to load the entity with the fetchprofile (the accessobject had to be loaded). The second load is not correct because the accessobject is not initialized.
When I changed the CacheConcurrencyStrategy from REEAD_WRITE to NONE the Test works.