mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1350 - ENH: Add mappingsLocation config to search xml mapping files.
Minor adjustments - read "mappingLocations" only etc.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user