Package cirrus.hibernate

Examples of cirrus.hibernate.SessionFactory


            props.load( in );

            /* Session Factory */
            __logger.info( "...initializing the Hibernate SessionFactory" );

            SessionFactory sessionFactory = ds.buildSessionFactory( props );
            config.getServletContext(  ).setAttribute( SESSION_FACTORY_KEY, sessionFactory );

            __logger.info( "Initialized" );
        }
        catch ( HibernateException h )
View Full Code Here


    public Session getHibernateSession(  )
        throws Exception
    {
        if ( _hibernateSession == null )
        {
            SessionFactory factory = ( SessionFactory ) _application.get( ActionServlet.SESSION_FACTORY_KEY );
            _hibernateSession = factory.openSession(  );
        }

        if ( !_hibernateSession.isOpen(  ) )
        {
            _hibernateSession.reconnect(  );
View Full Code Here

TOP

Related Classes of cirrus.hibernate.SessionFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.