Remove @Persistent from entity-scan include filters (#1772)

Original PR: #1772 
Closes: #1771
This commit is contained in:
Peter-Josef Meisch 2021-04-13 20:53:39 +02:00 committed by GitHub
parent d561c91678
commit 010c0cb6ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,8 +120,7 @@ public class ElasticsearchConfigurationSupport {
}
/**
* Scans the given base package for entities, i.e. Elasticsearch specific types annotated with {@link Document} and
* {@link Persistent}.
* Scans the given base package for entities, i.e. Elasticsearch specific types annotated with {@link Document}.
*
* @param basePackage must not be {@literal null}.
* @return never {@literal null}.
@ -137,7 +136,6 @@ public class ElasticsearchConfigurationSupport {
ClassPathScanningCandidateComponentProvider componentProvider = new ClassPathScanningCandidateComponentProvider(
false);
componentProvider.addIncludeFilter(new AnnotationTypeFilter(Document.class));
componentProvider.addIncludeFilter(new AnnotationTypeFilter(Persistent.class));
for (BeanDefinition candidate : componentProvider.findCandidateComponents(basePackage)) {