if I set @ManyToOne(fetch = FetchType.LAZY) it is working. In my case I need EAGER loading. But this leads to the OutOfMemoryError. Even if they increase the in maven memory, it does not work:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <configuration>
    <argLine>-Xmx4096m -Xms4096m</argLine>
  </configuration>
</plugin>
0

There are 0 best solutions below