Class HibernateConfig

java.lang.Object
io.hypersistence.optimizer.core.config.Config
io.hypersistence.optimizer.core.config.HibernateConfig

public final class HibernateConfig extends Config
The HibernateConfig class extends the base Config and encapsulates a Hibernate SessionFactory.
Since:
1.0.0
Author:
Vlad Mihalcea
  • Constructor Details

    • HibernateConfig

      public HibernateConfig(org.hibernate.SessionFactory sessionFactory)
      Instantiate the configuration for the provided Hibernate SessionFactory.
      Parameters:
      sessionFactory - Hibernate SessionFactory
  • Method Details

    • getSessionFactory

      public org.hibernate.SessionFactory getSessionFactory()
      Get the Hibernate SessionFactory.
      Returns:
      Hibernate SessionFactory