public class OsgiPersistenceProvider extends HibernatePersistenceProvider
Constructor and Description |
---|
OsgiPersistenceProvider(OsgiClassLoader osgiClassLoader,
OsgiJtaPlatform osgiJtaPlatform,
OsgiServiceUtil osgiServiceUtil,
org.osgi.framework.Bundle requestingBundle)
Constructs a OsgiPersistenceProvider
|
Modifier and Type | Method and Description |
---|---|
EntityManagerFactory |
createContainerEntityManagerFactory(PersistenceUnitInfo info,
Map properties)
Note: per-spec, the values passed as
properties override values found in PersistenceUnitInfo |
EntityManagerFactory |
createEntityManagerFactory(String persistenceUnitName,
Map properties)
Note: per-spec, the values passed as
properties override values found in persistence.xml |
generateSchema, generateSchema, getEntityManagerFactoryBuilder, getEntityManagerFactoryBuilder, getEntityManagerFactoryBuilder, getEntityManagerFactoryBuilderOrNull, getEntityManagerFactoryBuilderOrNull, getEntityManagerFactoryBuilderOrNull, getProviderUtil, wrap
public OsgiPersistenceProvider(OsgiClassLoader osgiClassLoader, OsgiJtaPlatform osgiJtaPlatform, OsgiServiceUtil osgiServiceUtil, org.osgi.framework.Bundle requestingBundle)
osgiClassLoader
- The ClassLoader we built from OSGi BundlesosgiJtaPlatform
- The OSGi-specific JtaPlatform impl we builtrequestingBundle
- The OSGi Bundle requesting the PersistenceProviderpublic EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, Map properties)
HibernatePersistenceProvider
properties
override values found in persistence.xml
createEntityManagerFactory
in interface PersistenceProvider
createEntityManagerFactory
in class HibernatePersistenceProvider
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties)
HibernatePersistenceProvider
properties
override values found in PersistenceUnitInfo
createContainerEntityManagerFactory
in interface PersistenceProvider
createContainerEntityManagerFactory
in class HibernatePersistenceProvider
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.