Skip to content

Commit

Permalink
Remove @Persistent from entity-scan include filters (#1772)
Browse files Browse the repository at this point in the history
Original PR: #1772 
Closes: #1771
  • Loading branch information
sothawo committed Apr 13, 2021
1 parent d561c91 commit 010c0cb
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -120,8 +120,7 @@ protected Set<Class<?>> getInitialEntitySet() {
}

/**
* 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}.
Expand All @@ -137,7 +136,6 @@ protected Set<Class<?>> scanForEntities(String basePackage) {
ClassPathScanningCandidateComponentProvider componentProvider = new ClassPathScanningCandidateComponentProvider(
false);
componentProvider.addIncludeFilter(new AnnotationTypeFilter(Document.class));
componentProvider.addIncludeFilter(new AnnotationTypeFilter(Persistent.class));

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

Expand Down

0 comments on commit 010c0cb

Please sign in to comment.