public final class JpaPersistModule extends PersistModule
Constructor and Description |
---|
JpaPersistModule(java.lang.String jpaUnit) |
Modifier and Type | Method and Description |
---|---|
<T> JpaPersistModule |
addFinder(java.lang.Class<T> iface)
Adds an interface to this module to use as a dynamic finder.
|
protected void |
configurePersistence() |
protected org.aopalliance.intercept.MethodInterceptor |
getTransactionInterceptor() |
JpaPersistModule |
properties(java.util.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
protected void configurePersistence()
configurePersistence
in class PersistModule
protected org.aopalliance.intercept.MethodInterceptor getTransactionInterceptor()
getTransactionInterceptor
in class PersistModule
public JpaPersistModule properties(java.util.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(java.lang.Class<T> iface)
iface
- Any interface type whose methods are all dynamic finders.