Fixed as per Java Code Conventions
[policy/engine.git] / POLICY-SDK-APP / src / main / java / org / onap / policy / conf / HibernateSession.java
index d70f199..0e1be93 100644 (file)
@@ -56,8 +56,20 @@ public class HibernateSession{
                        LOGGER.error("Exception Occured while creating Log database Hibernate session"+ex);
                }
        }
+
+       private HibernateSession(){
+          /**
+           empty implementation
+          */
+       }
+
        public static Session getSession(){
                return logSessionFactory.openSession();
        }
+       
+       public static void setSession(SessionFactory logSessionFactory1){
+               logSessionFactory = logSessionFactory1;
+       }
+
 
 }