We're updating the issue view to help you get more done. 

@fetchprofile does not work with second level cache

Description

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.

Environment

None

Status

Assignee

Unassigned

Reporter

Daniela Roth

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.1.7

Priority

Major