I have repository defined in an addon (com.company.addon.commons)
interface CityRepository : JmixDataRepository<City, UUID>
all it’s ok in this addon, build, test…
I create a second addon (com.company.addon.address), the default test is ok.
I add a dependency on the first one in the second one.
The default test is ko with the error
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.company.addon.address.repository.CityRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
To fix the spring initialisation, I need to add a line like this
interface CityRepository2 : CityRepository
in the child addon to load the repository defined in the parent addon.
How can I do to use repository defined in dependencies without redefine them in the current addon