File tree 1 file changed +1
-3
lines changed
src/main/java/org/springframework/data/elasticsearch/config
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,7 @@ protected Set<Class<?>> getInitialEntitySet() {
120
120
}
121
121
122
122
/**
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}.
125
124
*
126
125
* @param basePackage must not be {@literal null}.
127
126
* @return never {@literal null}.
@@ -137,7 +136,6 @@ protected Set<Class<?>> scanForEntities(String basePackage) {
137
136
ClassPathScanningCandidateComponentProvider componentProvider = new ClassPathScanningCandidateComponentProvider (
138
137
false );
139
138
componentProvider .addIncludeFilter (new AnnotationTypeFilter (Document .class ));
140
- componentProvider .addIncludeFilter (new AnnotationTypeFilter (Persistent .class ));
141
139
142
140
for (BeanDefinition candidate : componentProvider .findCandidateComponents (basePackage )) {
143
141
You can’t perform that action at this time.
0 commit comments