You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The preceding example excludes all interfaces ending in SomeRepository from being instantiated and includes those ending with SomeOtherRepository.
Instead it will be vice versa as per the given example in the section. It will exclude all those ending with SomeOtherRepository and include those ending with SomeRepository
I moved the ticket into Spring Data Commons as this repository hosts the documentation source.
mp911de
changed the title
Error in Documentation(repositories using-filters)
Documentation about include/exclude filters describes the inverse behavior
Nov 6, 2023
In the official documentation, Section 4.5.3. Using Filters, the last line has an error :
https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.using-filters
Instead it will be vice versa as per the given example in the section. It will exclude all those ending with SomeOtherRepository and include those ending with SomeRepository
@EnableJpaRepositories(basePackages = "com.acme.repositories",
includeFilters = { @Filter(type = FilterType.REGEX, pattern = ".*SomeRepository") }, excludeFilters = { @Filter(type = FilterType.REGEX, pattern = ".*SomeOtherRepository") })
The text was updated successfully, but these errors were encountered: