public abstract class ScanningEntityManagerBundle<T extends io.dropwizard.Configuration> extends EntityManagerBundle<T>
DEFAULT_NAME
Modifier | Constructor and Description |
---|---|
protected |
ScanningEntityManagerBundle(String path) |
protected |
ScanningEntityManagerBundle(String path,
EntityManagerFactoryFactory entityManagerFactoryFactory,
com.scottescue.dropwizard.entitymanager.SharedEntityManagerFactory sharedEntityManagerFactory) |
Modifier and Type | Method and Description |
---|---|
static com.google.common.collect.ImmutableList<Class<?>> |
findEntityClassesFromDirectory(String path)
Method scanning given directory for classes containing JPA @Entity annotation
|
configure, createHibernate4Module, getEntityManagerFactory, getSharedEntityManager, initialize, name, run
protected ScanningEntityManagerBundle(String path)
path
- string with package containing JPA entities (classes annotated with @Entity
annotation) e. g. com.my.application.directory.entities
protected ScanningEntityManagerBundle(String path, EntityManagerFactoryFactory entityManagerFactoryFactory, com.scottescue.dropwizard.entitymanager.SharedEntityManagerFactory sharedEntityManagerFactory)
public static com.google.common.collect.ImmutableList<Class<?>> findEntityClassesFromDirectory(String path)
path
- string with package containing JPA entities (classes annotated with @Entity annotation)Copyright © 2016. All rights reserved.