#1350 - ENH: Add mappingsLocation config to search xml mapping files.

Minor adjustments - read "mappingLocations" only etc.
This commit is contained in:
Rob Bygrave
2018-03-26 16:55:25 +13:00
parent 6cf5e3386d
commit 6534feb5da
3 changed files with 26 additions and 14 deletions
@@ -64,6 +64,7 @@ public class ServerConfigTest {
props.setProperty("disableL2Cache", "true");
props.setProperty("notifyL2CacheInForeground", "true");
props.setProperty("idType", "SEQUENCE");
props.setProperty("mappingLocations", "classpath:/foo;bar");
serverConfig.loadFromProperties(props);
@@ -83,6 +84,8 @@ public class ServerConfigTest {
assertEquals(4, serverConfig.getBackgroundExecutorSchedulePoolSize());
assertEquals(98, serverConfig.getBackgroundExecutorShutdownSecs());
assertThat(serverConfig.getMappingLocations()).containsExactly("classpath:/foo","bar");
serverConfig.setPersistBatch(PersistBatch.NONE);
serverConfig.setPersistBatchOnCascade(PersistBatch.NONE);
+1 -1
View File
@@ -27,6 +27,7 @@ ebean.autoReadOnlyDataSource=true
#ebean.h2.idType=SEQUENCE
ebean.mappingLocations=classpath:/ebean-xml-mappings
ebean.currentUserProvider=io.ebean.MyCurrentUserProvider
#ebean.expressionNativeIlike=true
#ebean.jsonInclude=NON_NULL
@@ -169,4 +170,3 @@ ebean.migrationtest.migration.appName=migrationtest
ebean.migrationtest.migration.migrationPath=dbmigration/migrationtest
ebean.migrationtest.migration.strict=true
ebean.mappingsLocations=classpath:/ebean-xml-mappings