Package org.hibernate.internal

Examples of org.hibernate.internal.SessionFactoryImpl


    Properties copy = new Properties();
    copy.putAll( properties );
    ConfigurationHelper.resolvePlaceHolders( copy );
    Settings settings = buildSettings( copy, serviceRegistry );

    return new SessionFactoryImpl(
        this,
        mapping,
        serviceRegistry,
        settings,
        sessionFactoryObserver
View Full Code Here


    Properties copy = new Properties();
    copy.putAll( properties );
    ConfigurationHelper.resolvePlaceHolders( copy );
    Settings settings = buildSettings( copy, serviceRegistry );

    return new SessionFactoryImpl(
        this,
        mapping,
        serviceRegistry,
        settings,
        sessionFactoryObserver
View Full Code Here

    Properties copy = new Properties();
    copy.putAll( properties );
    ConfigurationHelper.resolvePlaceHolders( copy );
    Settings settings = buildSettings( copy, serviceRegistry );

    return new SessionFactoryImpl(
        this,
        mapping,
        serviceRegistry,
        settings,
        sessionFactoryObserver
View Full Code Here

  public void doWork(DsWork work) {
    // Flush the EntityManager to make sure we have all entities available
    //this.em.flush();
       
    HibernateEntityManagerFactory factory = (HibernateEntityManagerFactory) this.em.unwrap(EntityManagerImpl.class).getEntityManagerFactory();
    SessionFactoryImpl sessionFactory = (SessionFactoryImpl) factory.getSessionFactory();
   
    ConnectionProvider connProvider = sessionFactory.getConnectionProvider();
    DataSource ds = null;
    if (connProvider instanceof DatasourceConnectionProviderImpl) {
      ds = ((DatasourceConnectionProviderImpl) connProvider).getDataSource();
      logger.debug("Using actual DataSource to execute DataSource work: " + ds);
    } else {
View Full Code Here

    Properties copy = new Properties();
    copy.putAll( properties );
    ConfigurationHelper.resolvePlaceHolders( copy );
    Settings settings = buildSettings( copy, serviceRegistry );

    return new SessionFactoryImpl(
        this,
        mapping,
        serviceRegistry,
        settings,
        sessionFactoryObserver
View Full Code Here

    Properties copy = new Properties();
    copy.putAll( properties );
    ConfigurationHelper.resolvePlaceHolders( copy );
    Settings settings = buildSettings( copy, serviceRegistry );

    return new SessionFactoryImpl(
        this,
        mapping,
        serviceRegistry,
        settings,
        sessionFactoryObserver
View Full Code Here

    Properties copy = new Properties();
    copy.putAll( properties );
    ConfigurationHelper.resolvePlaceHolders( copy );
    Settings settings = buildSettings( copy, serviceRegistry );

    return new SessionFactoryImpl(
        this,
        mapping,
        serviceRegistry,
        settings,
        sessionFactoryObserver
View Full Code Here

//----------------------------------------------------------------------------------------------------------------------

    @Override
    protected EventListenerRegistry getEventListenerRegistry()
    {
        SessionFactoryImpl sessionFactoryImpl = (SessionFactoryImpl) entityManagerFactory.getSessionFactory();
        return sessionFactoryImpl.getServiceRegistry().getService(EventListenerRegistry.class);
    }
View Full Code Here

    Properties copy = new Properties();
    copy.putAll( properties );
    ConfigurationHelper.resolvePlaceHolders( copy );
    Settings settings = buildSettings( copy, serviceRegistry );

    return new SessionFactoryImpl(
        this,
        mapping,
        serviceRegistry,
        settings,
        sessionFactoryObserver
View Full Code Here

    Properties copy = new Properties();
    copy.putAll( properties );
    ConfigurationHelper.resolvePlaceHolders( copy );
    Settings settings = buildSettings( copy, serviceRegistry );

    return new SessionFactoryImpl(
        this,
        mapping,
        serviceRegistry,
        settings,
        sessionFactoryObserver
View Full Code Here

TOP

Related Classes of org.hibernate.internal.SessionFactoryImpl

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.