use of org.springframework.data.repository.query.QueryByExampleExecutor in project spring-data-commons by spring-projects.
the class RepositoryCompositionUnitTests method before.
@Before
@SuppressWarnings("rawtypes")
public void before() {
RepositoryInformation repositoryInformation = new DefaultRepositoryInformation(new DefaultRepositoryMetadata(PersonRepository.class), backingRepo.getClass(), RepositoryComposition.empty());
RepositoryFragment<QueryByExampleExecutor> mixin = RepositoryFragment.implemented(QueryByExampleExecutor.class, queryByExampleExecutor);
RepositoryFragment<PersonRepository> base = RepositoryFragment.implemented(backingRepo);
repositoryComposition = RepositoryComposition.of(RepositoryFragments.of(mixin, base)).withMethodLookup(MethodLookups.forRepositoryTypes(repositoryInformation));
}
Aggregations