public final class JpaPersistModule extends PersistModule
Constructor and Description |
---|
JpaPersistModule(String jpaUnit) |
Modifier and Type | Method and Description |
---|---|
<T> JpaPersistModule |
addFinder(Class<T> iface)
Adds an interface to this module to use as a dynamic finder.
|
protected void |
configurePersistence() |
protected MethodInterceptor |
getTransactionInterceptor() |
JpaPersistModule |
properties(Map<?,?> properties)
Configures the JPA persistence provider with a set of properties.
|
configure
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public JpaPersistModule(String jpaUnit)
protected void configurePersistence()
configurePersistence
in class PersistModule
protected MethodInterceptor getTransactionInterceptor()
getTransactionInterceptor
in class PersistModule
public JpaPersistModule properties(Map<?,?> properties)
properties
- A set of name value pairs that configure a JPA persistence
provider as per the specification.java.util.Properties
)public <T> JpaPersistModule addFinder(Class<T> iface)
iface
- Any interface type whose methods are all dynamic finders.