public class JPAPlugin extends Plugin
Constructor and Description |
---|
JPAPlugin(Application application) |
Modifier and Type | Method and Description |
---|---|
javax.persistence.EntityManager |
em(java.lang.String key) |
boolean |
enabled()
Is this plugin enabled.
|
void |
onStart()
Reads the configuration file and initialises required JPA EntityManagerFactories.
|
void |
onStop()
Called when the application stops.
|
public JPAPlugin(Application application)
public void onStart()
public boolean enabled()
Plugin
public void onStop()
Plugin
public javax.persistence.EntityManager em(java.lang.String key)