Cosium / spring-data-jpa-entity-graph

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

Add type safe noop entity graph for generated entity graphs #78

Closed Cedricboisselrichard closed 1 year ago

Cedricboisselrichard commented 1 year ago

Hi there,

I would like to add an equivalent of EntityGraph.NOOP inside the generated entity graphs so that I will be able to provide my generated entity graph as a method parameter instead of using the interface EntityGraph (which contains the static variable EntityGraph.NOOP).

This will allow compilation failure when we provide the wrong entity graph :)