I have few entities which are related to each other:
A profile contains 1 or more project experiences and a project experience contains a project.
When I want to link a project experience to the profile by using the add action, it cannot fetch the attribute ‘profile’ from the selected profile experience.
However, the attribute ‘profile’ is checked in the projectexperience-view.
IllegalStateException: Cannot get unfetched attribute [profile] from detached object com.company.test.entity.ProjectExperience-3609994c-917e-a6e4-b8bd-156952bcd52c [detached].
You can find an example project below.
Any help is appreciated.