Package com.JayPi4c.RobbiSimulator.utils
Class HibernateUtils
java.lang.Object
com.JayPi4c.RobbiSimulator.utils.HibernateUtils
Utility class to manage the Hibernate SessionFactory.
- Since:
- 1.0.0
- Author:
- Jonas Pohl
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.hibernate.SessionFactory
Getter for the SessionFactory.static void
shutdown()
Utility function to shutdown the database connection.
-
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.
-