mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Add reading/setting of namingconvention.schema from ebean.properties
This commit is contained in:
@@ -353,6 +353,11 @@ public class DefaultServerFactory implements BootupEbeanManager {
|
||||
if (sequenceFormat != null) {
|
||||
nc.setSequenceFormat(sequenceFormat);
|
||||
}
|
||||
|
||||
String schema = config.getProperty("namingConvention.schema");
|
||||
if (schema != null) {
|
||||
nc.setSchema(schema);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ ebean.autofetch.profiling.base=10
|
||||
ebean.autofetch.traceUsageCollection=false
|
||||
|
||||
|
||||
ebean.ddl.generate=true
|
||||
#ebean.ddl.generate=true
|
||||
#ebean.ddl.run=true
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@ ebean.cacheWarmingDelay=-1
|
||||
|
||||
#ebean.namingConvention=com.avaje.ebean.config.UnderscoreNamingConvention
|
||||
#ebean.namingConvention.sequenceFormat={table}_{column}_seq
|
||||
#ebean.namingConvention.schema=banan
|
||||
#ebean.databaseSequenceBatchSize=1
|
||||
|
||||
## -------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user