@SessionScoped public class SessionEntityManagerStore extends AbstractEntityManagerStore
| Constructor and Description |
|---|
SessionEntityManagerStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize()
Run this to initialize all persistence units.
|
void |
terminate()
Run this to close all persistence units.
|
getCache, getEntityManager@PostConstruct public void initialize()
EntityManagerStorePostConstruct, so it runs as soon as an EntityManager gets injected.@PreDestroy public void terminate()
EntityManagerStorePreDestroy, so it runs as soon as the scope the EntityManager is
attached to ends.Copyright © 2015 SERPRO - Serviço Federal de Processamento de Dados. All Rights Reserved.