Class HibernateUtils

java.lang.Object
com.JayPi4c.RobbiSimulator.utils.HibernateUtils

public class HibernateUtils extends Object
Utility class to manage the Hibernate SessionFactory.
Since:
1.0.0
Author:
Jonas Pohl
  • Method Details

    • getSessionFactory

      public static org.hibernate.SessionFactory getSessionFactory()
      Getter for the SessionFactory. If the SessionFactory is null, it will be created.
      Returns:
      The SessionFactory.
    • shutdown

      public static void shutdown()
      Utility function to shutdown the database connection.