File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/main/java/org/springframework/data/elasticsearch/config Expand file tree Collapse file tree 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() {
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
You can’t perform that action at this time.
0 commit comments