Cosium / spring-data-jpa-entity-graph

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

Do not ignore empty entitygraph #36

Closed reda-alaoui closed 2 years ago

reda-alaoui commented 4 years ago

Since https://hibernate.atlassian.net/browse/HHH-8776 and following #35 , Hibernate makes a difference between LOAD and FETCH graph. Thanks to that, an empty FETCH graph can be used to mark all entity attributes as LAZY, including those annotated with EAGER.

Currently this extension consider this kind of entity graphs as ignorable. They are not passed to the ORM and trigger fallback to an eventual default entitygraph.