On startup of a spring-boot
application I want to perform a scan for all @Entitiy
classes on the classpath.
Moreover, I'd like to filter any entities with a @CustomAnnotation
.
I want to create some kind of auto configuration, and use the package of any entities found in:
EntityManagerFactoryBuilder
.dataSource(ds)
.packages(getPackages()))
But I don't want to explicit define the package there the appropriate entities are to be found, but find them on startup. Is that possible at all?