@Singleton public class JPAConfig extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
JPAConfig.LazyPersistenceUnit |
Constructor and Description |
---|
JPAConfig() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
destroy() |
(package private) void |
destroy(Object event)
Need to shutdown all instances of Hibernate ORM before the actual destroy event,
as it might need to use the datasources during shutdown.
|
javax.persistence.EntityManagerFactory |
getEntityManagerFactory(String unitName) |
(package private) void |
initDefaultPersistenceUnit() |
(package private) boolean |
isJtaEnabled() |
(package private) void |
registerPersistenceUnit(String unitName) |
(package private) void |
setJtaEnabled(boolean value) |
(package private) void |
startAll() |
void setJtaEnabled(boolean value)
public javax.persistence.EntityManagerFactory getEntityManagerFactory(String unitName)
void registerPersistenceUnit(String unitName)
void startAll()
void initDefaultPersistenceUnit()
boolean isJtaEnabled()
void destroy(@BeforeDestroyed(value=javax.enterprise.context.ApplicationScoped.class) Object event)
event
- ignored@PreDestroy void destroy()
Copyright © 2019 JBoss by Red Hat. All rights reserved.