Package net.sf.gilead.core.hibernate

Examples of net.sf.gilead.core.hibernate.HibernateUtil


    else {
      if (usingJpa) {
        util = new HibernateJpaUtil((EntityManagerFactory) factory);
      }
      else {
        util = new HibernateUtil((SessionFactory) factory);
      }
    }

    // TODO: This should actually be a session bound proxy store instead of a global one
    InMemoryProxyStore proxyStore = new InMemoryProxyStore();
View Full Code Here


  {
    super.init();
   
  //  Bean Manager initialization
  //
    HibernateUtil persistenceUtil = new HibernateUtil();
    persistenceUtil.setSessionFactory(HibernateContext.getSessionFactory());

    PersistentBeanManager beanManager = new PersistentBeanManager();
    beanManager.setPersistenceUtil(persistenceUtil);
    beanManager.setProxyStore(new StatelessProxyStore());
    setBeanManager(beanManager);
View Full Code Here

public class HibernateAdapter implements ModelAdapter {
    private PersistentBeanManager beanManager;

    public HibernateAdapter(final SessionFactory sessionFactory) {
        // configure gilead
        final HibernateUtil persistenceUtil = new HibernateUtil();
        persistenceUtil.setSessionFactory(sessionFactory);

        // TODO: This should actually be a session bound proxy store instead of a global one
        final InMemoryProxyStore proxyStore = new InMemoryProxyStore();
        proxyStore.setPersistenceUtil(persistenceUtil);
View Full Code Here

      }
    } else {
      if (usingJpa) {
        util = new HibernateJpaUtil((EntityManagerFactory)factory);
      } else {
        util = new HibernateUtil((SessionFactory) factory);
      }     
    }
   
        // TODO: This should actually be a session bound proxy store instead of a global one
    InMemoryProxyStore proxyStore = new InMemoryProxyStore();
View Full Code Here

TOP

Related Classes of net.sf.gilead.core.hibernate.HibernateUtil

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.