Class HibernateUtil


  • public class HibernateUtil
    extends Object
    This class contains a single static utility method which returns a Hibernate session: HibernateUtil.getSession().

    The configuration for the session is read from settings.xml in the elements nested under settings/wayback/hibernate.

    • Method Detail

      • getSession

        public static org.hibernate.Session getSession()
        Get a hibernate session for communicating with the object store for the wayback indexer. This method has the side effect of creating and initialising a SessionFactory object if there is no current open SessionFactory.
        Returns:
        the above mentioned hibernate session.