Package org.hibernate.jpa.boot.spi

Examples of org.hibernate.jpa.boot.spi.EntityManagerFactoryBuilder


   */
  @Override
  public EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, Map properties) {
    log.tracef( "Starting createEntityManagerFactory for persistenceUnitName %s", persistenceUnitName );

    final EntityManagerFactoryBuilder builder = getEntityManagerFactoryBuilderOrNull( persistenceUnitName, properties );
    if ( builder == null ) {
      log.trace( "Could not obtain matching EntityManagerFactoryBuilder, returning null" );
      return null;
    }
    else {
      return builder.build();
    }
  }
View Full Code Here


  @Override
  public void generateSchema(PersistenceUnitInfo info, Map map) {
    log.tracef( "Starting generateSchema : PUI.name=%s", info.getPersistenceUnitName() );

    final EntityManagerFactoryBuilder builder = Bootstrap.getEntityManagerFactoryBuilder( info, map );
    builder.generateSchema();
  }
View Full Code Here

  @Override
  public boolean generateSchema(String persistenceUnitName, Map map) {
    log.tracef( "Starting generateSchema for persistenceUnitName %s", persistenceUnitName );

    final EntityManagerFactoryBuilder builder = getEntityManagerFactoryBuilderOrNull( persistenceUnitName, map );
    if ( builder == null ) {
      log.trace( "Could not obtain matching EntityManagerFactoryBuilder, returning false" );
      return false;
    }
    builder.generateSchema();
    return true;
  }
View Full Code Here

    // ClassLoaderServiceImpl#fromConfigSettings
    settings.put( AvailableSettings.ENVIRONMENT_CLASSLOADER, osgiClassLoader );

    osgiClassLoader.addBundle( requestingBundle );

    final EntityManagerFactoryBuilder builder = getEntityManagerFactoryBuilderOrNull( persistenceUnitName, settings, osgiClassLoader );
    return builder == null ? null : builder.build();
  }
View Full Code Here

   */
  @Override
  public EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, Map properties) {
    log.tracef( "Starting createEntityManagerFactory for persistenceUnitName %s", persistenceUnitName );

    final EntityManagerFactoryBuilder builder = getEntityManagerFactoryBuilderOrNull( persistenceUnitName, properties );
    if ( builder == null ) {
      log.trace( "Could not obtain matching EntityManagerFactoryBuilder, returning null" );
      return null;
    }
    else {
      return builder.build();
    }
  }
View Full Code Here

  @Override
  public void generateSchema(PersistenceUnitInfo info, Map map) {
    log.tracef( "Starting generateSchema : PUI.name=%s", info.getPersistenceUnitName() );

    EntityManagerFactoryBuilder builder = Bootstrap.getEntityManagerFactoryBuilder( info, map );
    builder.generateSchema();
  }
View Full Code Here

  @Override
  public boolean generateSchema(String persistenceUnitName, Map map) {
    log.tracef( "Starting generateSchema for persistenceUnitName %s", persistenceUnitName );

    final EntityManagerFactoryBuilder builder = getEntityManagerFactoryBuilderOrNull( persistenceUnitName, map );
    if ( builder == null ) {
      log.trace( "Could not obtain matching EntityManagerFactoryBuilder, returning false" );
      return false;
    }
    builder.generateSchema();
    return true;
  }
View Full Code Here

  @Override
  public EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, Map properties) {
    log.tracef( "Starting createEntityManagerFactory for persistenceUnitName %s", persistenceUnitName );

    try {
      final EntityManagerFactoryBuilder builder = getEntityManagerFactoryBuilderOrNull( persistenceUnitName, properties );
      if ( builder == null ) {
        log.trace( "Could not obtain matching EntityManagerFactoryBuilder, returning null" );
        return null;
      }
      else {
        return builder.build();
      }
    }
    catch (PersistenceException pe) {
      throw pe;
    }
View Full Code Here

  @Override
  public void generateSchema(PersistenceUnitInfo info, Map map) {
    log.tracef( "Starting generateSchema : PUI.name=%s", info.getPersistenceUnitName() );

    final EntityManagerFactoryBuilder builder = getEntityManagerFactoryBuilder( info, map );
    builder.generateSchema();
  }
View Full Code Here

  @Override
  public boolean generateSchema(String persistenceUnitName, Map map) {
    log.tracef( "Starting generateSchema for persistenceUnitName %s", persistenceUnitName );

    final EntityManagerFactoryBuilder builder = getEntityManagerFactoryBuilderOrNull( persistenceUnitName, map );
    if ( builder == null ) {
      log.trace( "Could not obtain matching EntityManagerFactoryBuilder, returning false" );
      return false;
    }
    builder.generateSchema();
    return true;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.jpa.boot.spi.EntityManagerFactoryBuilder

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.