Change such that querybean generated class registration can be used will explicit class registration

In DatabaseConfig.isAutoLoadModuleInfo() it only used the querybean generated class registration is classes.isEmpty(). Changing this so that it only uses the loadModuleInfo flag.

This means, unless loadModuleInfo is set to false the classes that register with ebean will be a combination of both the explicitly registered ones plus the classes from the querybean generated EbeanEntityRegister.

In addition, this changes the classes from List to Set.
This commit is contained in:
Rob Bygrave
2023-03-10 11:01:46 +13:00
parent e4cb81cbba
commit a8cad4f3d9
12 changed files with 81 additions and 62 deletions
@@ -24,7 +24,7 @@ public class BeanDescriptor_registerTest {
config.setDdlExtra(false);
config.setRegister(false);
config.setDefaultServer(false);
config.getClasses().add(EBasic.class);
config.addClass(EBasic.class);
SpiEbeanServer ebeanServer = (SpiEbeanServer)DatabaseFactory.create(config);
try {