public abstract class ScanningHibernateBundle<T> extends HibernateBundle<T>
DEFAULT_NAME| Modifier | Constructor and Description |
|---|---|
protected |
ScanningHibernateBundle(String pckg) |
protected |
ScanningHibernateBundle(String[] pckgs,
SessionFactoryFactory sessionFactoryFactory) |
protected |
ScanningHibernateBundle(String pckg,
SessionFactoryFactory sessionFactoryFactory) |
| Modifier and Type | Method and Description |
|---|---|
static List<Class<?>> |
findEntityClassesFromDirectory(String[] pckgs)
Method scanning given directory for classes containing Hibernate @Entity annotation
|
configure, createHibernate5Module, getSessionFactory, initialize, isLazyLoadingEnabled, name, run, setLazyLoadingEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataSourceFactoryprotected ScanningHibernateBundle(String pckg)
pckg - string with package containing Hibernate entities (classes annotated with Hibernate @Entity
annotation) e. g. com.codahale.fake.db.directory.entitiesprotected ScanningHibernateBundle(String pckg, SessionFactoryFactory sessionFactoryFactory)
protected ScanningHibernateBundle(String[] pckgs, SessionFactoryFactory sessionFactoryFactory)
public static List<Class<?>> findEntityClassesFromDirectory(String[] pckgs)
pckgs - string array with packages containing Hibernate entities (classes annotated with @Entity annotation)
e.g. com.codahale.fake.db.directory.entitiesCopyright © 2020. All rights reserved.