Package org.hibernate.osgi
Class OsgiPersistenceProvider
- java.lang.Object
-
- org.hibernate.jpa.HibernatePersistenceProvider
-
- org.hibernate.osgi.OsgiPersistenceProvider
-
- All Implemented Interfaces:
PersistenceProvider
public class OsgiPersistenceProvider extends HibernatePersistenceProvider
Acts as the PersistenceProvider service in OSGi environments
-
-
Constructor Summary
Constructors Constructor Description OsgiPersistenceProvider(OsgiClassLoader osgiClassLoader, OsgiJtaPlatform osgiJtaPlatform, OsgiServiceUtil osgiServiceUtil, org.osgi.framework.Bundle requestingBundle)Constructs a OsgiPersistenceProvider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityManagerFactorycreateContainerEntityManagerFactory(PersistenceUnitInfo info, java.util.Map properties)EntityManagerFactorycreateEntityManagerFactory(java.lang.String persistenceUnitName, java.util.Map properties)-
Methods inherited from class org.hibernate.jpa.HibernatePersistenceProvider
generateSchema, generateSchema, getEntityManagerFactoryBuilder, getEntityManagerFactoryBuilder, getEntityManagerFactoryBuilder, getEntityManagerFactoryBuilderOrNull, getEntityManagerFactoryBuilderOrNull, getEntityManagerFactoryBuilderOrNull, getProviderUtil, wrap
-
-
-
-
Constructor Detail
-
OsgiPersistenceProvider
public OsgiPersistenceProvider(OsgiClassLoader osgiClassLoader, OsgiJtaPlatform osgiJtaPlatform, OsgiServiceUtil osgiServiceUtil, org.osgi.framework.Bundle requestingBundle)
Constructs a OsgiPersistenceProvider- Parameters:
osgiClassLoader- The ClassLoader we built from OSGi BundlesosgiJtaPlatform- The OSGi-specific JtaPlatform impl we builtrequestingBundle- The OSGi Bundle requesting the PersistenceProvider
-
-
Method Detail
-
createEntityManagerFactory
public EntityManagerFactory createEntityManagerFactory(java.lang.String persistenceUnitName, java.util.Map properties)
Description copied from class:HibernatePersistenceProviderNote: per-spec, the values passed aspropertiesoverride values found inpersistence.xml- Specified by:
createEntityManagerFactoryin interfacePersistenceProvider- Overrides:
createEntityManagerFactoryin classHibernatePersistenceProvider
-
createContainerEntityManagerFactory
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, java.util.Map properties)
Description copied from class:HibernatePersistenceProviderNote: per-spec, the values passed aspropertiesoverride values found inPersistenceUnitInfo- Specified by:
createContainerEntityManagerFactoryin interfacePersistenceProvider- Overrides:
createContainerEntityManagerFactoryin classHibernatePersistenceProvider
-
-