Package org.jboss.jpa.spi

Examples of org.jboss.jpa.spi.PersistenceUnit


               return em;
         }
      }
      */
      String kernelName = factory.getKernelName();
      PersistenceUnit pu = PersistenceUnitRegistry.getPersistenceUnit(kernelName);
      XPCResolver xpcResolver = pu.getXPCResolver();
      EntityManager em = xpcResolver.getExtendedPersistenceContext(kernelName);
      if(em != null)
         return em;
     
      return factory.getTransactionScopedEntityManager();
View Full Code Here


   }
  
   protected EntityManager getEntityManager()
   {
      String kernelName = persistenceUnit.getName();
      PersistenceUnit pu = PersistenceUnitRegistry.getPersistenceUnit(kernelName);
      XPCResolver xpcResolver = pu.getXPCResolver();
      EntityManager em = xpcResolver.getExtendedPersistenceContext(kernelName);
      if(em != null)
         return em;
     
      return persistenceUnit.getTransactionScopedEntityManager();
View Full Code Here

TOP

Related Classes of org.jboss.jpa.spi.PersistenceUnit

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.