79795251

Date: 2025-10-20 20:09:40
Score: 1
Natty:
Report link

The answer mentioned by Chris is the solution :

    @ManyToOne
    @Fetch(FetchMode.SELECT)
    @JoinColumn(name = "FK_COUNTRY")
    private CountryEntity country;

Because the FetchModeType is marked as EAGER, the default FetchMode is JOIN. That's why in my case, I have to force it to SELECT

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: huartgi