Examples of secondaryCacheEnabled()


Examples of railo.runtime.orm.ORMConfiguration.secondaryCacheEnabled()

     
      // Echo all executed SQL to stdout
      .setProperty("hibernate.show_sql", CommonUtil.toString(ormConf.logSQL()))
      .setProperty("hibernate.format_sql", CommonUtil.toString(ormConf.logSQL()))
      // Specifies whether secondary caching should be enabled
      .setProperty("hibernate.cache.use_second_level_cache", CommonUtil.toString(ormConf.secondaryCacheEnabled()))
    // Drop and re-create the database schema on startup
      .setProperty("hibernate.exposeTransactionAwareSessionFactory", "false")
    //.setProperty("hibernate.hbm2ddl.auto", "create")
    .setProperty("hibernate.default_entity_mode", "dynamic-map");
   
View Full Code Here

Examples of railo.runtime.orm.ORMConfiguration.secondaryCacheEnabled()

      configuration.setProperty("hibernate.default_catalog", ormConf.getCatalog());
    if(!Util.isEmpty(ormConf.getSchema()))
      configuration.setProperty("hibernate.default_schema",ormConf.getSchema());
   
   
    if(ormConf.secondaryCacheEnabled()){
      if(cacheConfig!=null && cacheConfig.isFile())
        configuration.setProperty("hibernate.cache.provider_configuration_file_resource_path",cacheConfig.getAbsolutePath());
      if(regionFactory!=null || Reflector.isInstaneOf(cacheProvider, RegionFactory.class))
        configuration.setProperty("hibernate.cache.region.factory_class", cacheProvider);
      else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.