Change ModuleInfoLoader API and querybean-generator for named default database (#2190)

Currently we can not use @DbName with the entities of the default database. With this change the generated code that registers entity classes will support using @DbName with the default database.
This commit is contained in:
Rob Bygrave authored and GitHub committed 2021-03-11 20:42:25 +13:00
1 parent d65e769dd7
commit d75d1fce43
6 files changed
+99 -76

No files matched your search

@@ -7,13 +7,8 @@ import java.util.List;
*/
public interface ModuleInfoLoader {
/**
* Return the entity classes to register with the default DB.
*/
List<Class<?>> entityClasses();
/**
* Return entity classes to register for a named DB (not default DB).
*/
List<Class<?>> entityClassesFor(String dbName);
List<Class<?>> classesFor(String dbName, boolean defaultServer);
}