public class EntityManagerConfig extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityManagerConfig.EntityManagerScope
Supported scopes for the entity manager
|
| Constructor and Description |
|---|
EntityManagerConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultPersistenceUnitName()
Getter for persistence unit name.
|
EntityManagerConfig.EntityManagerScope |
getEntityManagerScope()
Defines the scope of
EntityManager's produced by the internal producer. |
void |
setEntityManagerScope(EntityManagerConfig.EntityManagerScope entityManagerScope) |
public String getDefaultPersistenceUnitName()
public EntityManagerConfig.EntityManagerScope getEntityManagerScope()
Defines the scope of EntityManager's produced by the internal producer.
Valid values are NOSCOPE,REQUEST,SESSION,VIEW,CONVERSATION and APPLICATION.
NOSCOPE means every injected entity manager will be a different instance.
The default value is REQUEST, meaning the producer will create the same entity manager for the duration of the request.
public void setEntityManagerScope(EntityManagerConfig.EntityManagerScope entityManagerScope)
Copyright © 2018 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.