Example usage for org.hibernate.cfg AvailableSettings ENABLE_LAZY_LOAD_NO_TRANS

List of usage examples for org.hibernate.cfg AvailableSettings ENABLE_LAZY_LOAD_NO_TRANS

Introduction

In this page you can find the example usage for org.hibernate.cfg AvailableSettings ENABLE_LAZY_LOAD_NO_TRANS.

Prototype

String ENABLE_LAZY_LOAD_NO_TRANS

To view the source code for org.hibernate.cfg AvailableSettings ENABLE_LAZY_LOAD_NO_TRANS.

Click Source Link

Usage

From source file:ar.edu.utn.sigmaproject.web.ApplicationConfig.java

License:Open Source License

Properties additionalProperties() {
    Properties properties = new Properties();
    properties.setProperty(AvailableSettings.HBM2DDL_AUTO, this.hbm2ddl);
    properties.setProperty(AvailableSettings.DIALECT, "org.hibernate.dialect.MySQL5InnoDBDialect");
    properties.setProperty(AvailableSettings.ENABLE_LAZY_LOAD_NO_TRANS, "true");
    return properties;
}