3838import org .springframework .data .projection .ProjectionFactory ;
3939import org .springframework .data .querydsl .EntityPathResolver ;
4040import org .springframework .data .querydsl .SimpleEntityPathResolver ;
41+ import org .springframework .data .repository .core .EntityInformation ;
4142import org .springframework .data .repository .core .RepositoryInformation ;
4243import org .springframework .data .repository .core .RepositoryMetadata ;
4344import org .springframework .data .repository .core .support .QueryCreationListener ;
@@ -260,8 +261,7 @@ protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable Key key
260261 JpaQueryConfiguration queryConfiguration = new JpaQueryConfiguration (queryRewriterProvider , queryEnhancerSelector ,
261262 new CachingValueExpressionDelegate (valueExpressionDelegate ), escapeCharacter );
262263
263- return Optional .of (JpaQueryLookupStrategy .create (entityManager , queryMethodFactory , key ,
264- queryConfiguration ));
264+ return Optional .of (JpaQueryLookupStrategy .create (entityManager , queryMethodFactory , key , queryConfiguration ));
265265 }
266266
267267 @ Override
@@ -270,6 +270,11 @@ public <T, ID> JpaEntityInformation<T, ID> getEntityInformation(Class<T> domainC
270270 return (JpaEntityInformation <T , ID >) JpaEntityInformationSupport .getEntityInformation (domainClass , entityManager );
271271 }
272272
273+ @ Override
274+ public EntityInformation <?, ?> getEntityInformation (RepositoryMetadata metadata ) {
275+ return JpaEntityInformationSupport .getEntityInformation (metadata .getDomainType (), entityManager );
276+ }
277+
273278 @ Override
274279 protected RepositoryFragments getRepositoryFragments (RepositoryMetadata metadata ) {
275280 return getRepositoryFragments (metadata , entityManager , entityPathResolver , this .crudMethodMetadata );
0 commit comments