-// ==============================================================================================================================
-// Private services
-// ==============================================================================================================================
-
- private static SessionFactory getInstance () {
-// --------------------------------------------
- if (mySessionFactory == null) {
-// org.hibernate.cfg.Configuration cfg = new org.hibernate.cfg.Configuration();
- try {
- mySessionFactory = getContext().getBean(SessionFactory.class);
-// cfg.configure(); // The configuration file (hibernate.cfg.xml)) is supposed to be on the classpath
-// mySessionFactory = cfg.buildSessionFactory();
- }
- catch (Exception error) {
- logger.fatal("Could not initialize the Hibernate configuration, reason:", error);
- }
- }
- return mySessionFactory;
- }
+ // ==============================================================================================================================
+ // Private services
+ // ==============================================================================================================================
+//{
+// if (myDB == null) {
+// myDB = new Database();
+// }
+// return myDB;
+// }