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

Feat. Customizing EntityGraphQuerydslRepository (making delegate protected) #20

Closed f-aubert closed 5 years ago

f-aubert commented 5 years ago

Would you consider making the QueryDsl Delegate protected (or a getter to it) in EntityGraphQuerydslRepository so it would be possible to make use of your great EntityGraph handling and still allowing further customization?

My UseCase would be to customize Spring Data QueryDsl to use Spring Data Projection, see https://stackoverflow.com/questions/18300465/spring-data-jpa-and-querydsl-to-fetch-subset-of-columns-using-bean-constructor-p/35087403#35087403 .

Alternatively you could take the whole Projection Extension in either EntityGraphQuerydslRepository or in a new EntityGraphProjectionQuerydslRepository to make it part of your Cosium Package.

If you want to further discuss it with me, I'd gladly brainstorm with you. Thanks.