/** * A static method with returns Hibernate Sessoin Object. * * @return {@link Session} */ public static Session getSession() throws HibernateException { Session appSession = sessionFactory .openSession(); try { if (appSession.connection().isClosed()||!appSession.isConnected()||!appSession.isOpen()){ System. out .println( "Session Closed, Creating Session again..." ); ...
Comments
Post a Comment