}
private void doUpdateORMSetting() throws SecurityException, PageException {
ORMConfiguration oc = config.getORMConfig();
Struct settings=new StructImpl();
settings.set(ORMConfigurationImpl.AUTO_GEN_MAP, getBool("admin",action,"autogenmap"));
settings.set(ORMConfigurationImpl.EVENT_HANDLING, getBool("admin",action,"eventHandling"));
settings.set(ORMConfigurationImpl.FLUSH_AT_REQUEST_END, getBool("admin",action,"flushatrequestend"));
settings.set(ORMConfigurationImpl.LOG_SQL, getBool("admin",action,"logSQL"));
settings.set(ORMConfigurationImpl.SAVE_MAPPING, getBool("admin",action,"savemapping"));
settings.set(ORMConfigurationImpl.USE_DB_FOR_MAPPING, getBool("admin",action,"useDBForMapping"));
settings.set(ORMConfigurationImpl.SECONDARY_CACHE_ENABLED, getBool("admin",action,"secondarycacheenabled"));
settings.set(ORMConfigurationImpl.CATALOG, getString("admin",action,"catalog"));
settings.set(ORMConfigurationImpl.SCHEMA, getString("admin",action,"schema"));
settings.set(ORMConfigurationImpl.SQL_SCRIPT, getString("admin",action,"sqlscript"));
settings.set(ORMConfigurationImpl.CACHE_CONFIG, getString("admin",action,"cacheconfig"));
settings.set(ORMConfigurationImpl.CACHE_PROVIDER, getString("admin",action,"cacheProvider"));
settings.set(ORMConfigurationImpl.ORM_CONFIG, getString("admin",action,"ormConfig"));
// dbcreate
String strDbcreate=getString("admin",action,"dbcreate");
String dbcreate="none";
if("none".equals(strDbcreate)) dbcreate="none";
else if("update".equals(strDbcreate)) dbcreate="update";
else if("dropcreate".equals(strDbcreate)) dbcreate="dropcreate";
else throw new ApplicationException("invalid dbcreate definition ["+strDbcreate+"], valid dbcreate definitions are [none,update,dropcreate]");
settings.set(ORMConfigurationImpl.DB_CREATE, dbcreate);
// cfclocation
String strCfclocation=getString("admin",action,"cfclocation");
Array arrCfclocation = railo.runtime.type.util.ListUtil.listToArray(strCfclocation, ",\n");
Iterator it = arrCfclocation.valueIterator();
String path;
while(it.hasNext()){
path=(String) it.next();
ResourceUtil.toResourceExisting(config, path);
}
settings.set(KeyConstants._cfcLocation, arrCfclocation);
admin.updateORMSetting(ORMConfigurationImpl.load(config, null, settings, null, oc));
store();