Cosium / spring-data-jpa-entity-graph

Spring Data JPA extension allowing full dynamic usage of EntityGraph on repositories
MIT License
469 stars 52 forks source link

findAll with pageable is not working well with entitygraphs #29

Closed chaoyangnz closed 4 years ago

chaoyangnz commented 4 years ago

Hi, I have two entities, A has a @OneToMany relation to B. then i set entitygraph and expect to retrieve nested B in one SQL.

When i use findAll with pageable, it doesn’t do pagination, no limit is generated . instead it will load the whole table.

reda-alaoui commented 4 years ago

Hi @chaoyangnz ,

This is caused by Hibernate and is not related to the current project.

reda-alaoui commented 4 years ago

I strongly encourage you to enable this