Thank you for your input. I tried it. It kind of works, but I find the behaviour strange. Can you please take a look? I added the annotation and the "Child"-entity is not eagerly loaded, so far so good. But I noticed that the query to fetch the "Parent" has changed to:
The child_id column is no longer included. When I now access the child two queries are executed:
Is that expected behaviour? |