#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);