Skip to content

Commit 010c0cb

Browse files
authored
Remove @Persistent from entity-scan include filters (#1772)
Original PR: #1772 Closes: #1771
1 parent d561c91 commit 010c0cb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/springframework/data/elasticsearch/config/ElasticsearchConfigurationSupport.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ protected Set<Class<?>> getInitialEntitySet() {
120120
}
121121

122122
/**
123-
* Scans the given base package for entities, i.e. Elasticsearch specific types annotated with {@link Document} and
124-
* {@link Persistent}.
123+
* Scans the given base package for entities, i.e. Elasticsearch specific types annotated with {@link Document}.
125124
*
126125
* @param basePackage must not be {@literal null}.
127126
* @return never {@literal null}.
@@ -137,7 +136,6 @@ protected Set<Class<?>> scanForEntities(String basePackage) {
137136
ClassPathScanningCandidateComponentProvider componentProvider = new ClassPathScanningCandidateComponentProvider(
138137
false);
139138
componentProvider.addIncludeFilter(new AnnotationTypeFilter(Document.class));
140-
componentProvider.addIncludeFilter(new AnnotationTypeFilter(Persistent.class));
141139

142140
for (BeanDefinition candidate : componentProvider.findCandidateComponents(basePackage)) {
143141

0 commit comments

Comments
 (0)