com.isomorphic.hibernate

## Class HB4Provider

- java.lang.Object
- - com.isomorphic.hibernate.HB4Provider

- All Implemented Interfaces:
    HBProviderInterface

      public class HB4Provider
      extends java.lang.Object
      implements HBProviderInterface

  HB provider for Hibernate 4 and earlier.

  `SessionFactory` is created in initialization block and used to create `Session` objects.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static java.lang.String` | `CONFIG` Name of sub property for hibernate configuration file.
    `protected org.hibernate.cfg.Configuration` | `configuration` Holds `Configuration`.
    `protected org.hibernate.SessionFactory` | `factory` Holds `SessionFactory`.

  - ### Method Summary

    - ### Methods inherited from interface com.isomorphic.hibernate.HBProviderInterface

      `commitTransaction, get, getSession, getTransaction, returnSession, rollbackTransaction`

- - ### Field Detail

    - #### CONFIG

          public static final java.lang.String CONFIG

      Name of sub property for hibernate configuration file.
      See Also:
        Constant Field Values

    - #### configuration

          protected org.hibernate.cfg.Configuration configuration

      Holds `Configuration`.

    - #### factory

          protected org.hibernate.SessionFactory factory

      Holds `SessionFactory`.