Package railo.runtime.orm

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


      .setProperty("hibernate.dialect", dialect)
      // Enable Hibernate's current session context
      .setProperty("hibernate.current_session_context_class", "thread")
     
      // 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")
View Full Code Here


      // Enable Hibernate's current session context
      .setProperty("hibernate.current_session_context_class", "thread")
     
      // 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")
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.