/** * This just delegates to the HibernatePersistence method. */ @SuppressWarnings("rawtypes") @Override public EntityManagerFactory createContainerEntityManagerFactory( PersistenceUnitInfo info, Map properties) { EntityManagerFactory factory = wrappedPersistenceProvider.createContainerEntityManagerFactory(info, properties); return factory; }
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map map) { if (log.isInfoEnabled()) log.info("Creating Container EntityManagerFactory: "+info.getPersistenceUnitName()+" ("+map+")"); HibernatePersistence hibernatePersistence = new HibernatePersistence(); EntityManagerFactory emf = hibernatePersistence.createContainerEntityManagerFactory(info, map); return emf; }
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map map) { if (log.isInfoEnabled()) log.info("Creating Container EntityManagerFactory: "+info.getPersistenceUnitName()+" ("+map+")"); HibernatePersistence hibernatePersistence = new HibernatePersistence(); EntityManagerFactory emf = hibernatePersistence.createContainerEntityManagerFactory(info, map); return emf; }
return new HibernatePersistence().createContainerEntityManagerFactory(persistenceUnitInfo, properties); } catch (Throwable thw) {
entityManagerFactory = hp.createContainerEntityManagerFactory(pumd, null); isInitialized = true; } catch (Exception e) {
tx = sleeTransactionManager.suspend(); this.entityManagerFactory = hp .createContainerEntityManagerFactory(pumd, null); } catch (Exception e) { logger.error("Failure creating Persistence Unit.", e);