I have a method
public RepositoryRestConfiguration exposeIdsFor(Class<?>... domainTypes) {
Collections.addAll(exposeIdsFor, domainTypes);
return this;
}
I want to pass to exposeIdsFor
all the classes annotated with @org.springframework.data.mybatis.annotations.Entity
using their package location :
packageA
: com.packageA.domainpackageB
: com.packageB.domain
It should look like :
@Override
public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
config.exposeIdsFor(...);
}
How is it possible?