Skip to content

Cannot have repo implementation in different namespace [DATACMNS-1230] #1669

@spring-projects-issues

Description

@spring-projects-issues

bojan vukasovic opened DATACMNS-1230 and commented

I cannot move repo implementation in different namespace than where I define interface even if I specify component scan for mulitple namespaces with

@EnableElasticsearchRepositories(basePackages = {"com.a", "com.b"})

.

The problem lies in RepositoryBeanDefinitionBuilder where

public Iterable<String> getBasePackages() {
            return Collections.singleton(ClassUtils.getPackageName(fragmentInterfaceName));
        }

should be

public Iterable<String> getBasePackages() {
            return configuration.getBasePackages();
        }

Is there specific reason for this kind of implementation?


No further details from DATACMNS-1230

Metadata

Metadata

Assignees

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions