public final class EntityIntegrator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AUDIT_IDENTIFIER |
static String |
AUDIT_SESSION_FACTORY |
static String |
SESSION_FACTORY |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Collection<Class<?>> |
getAnnotatedClasses() |
static List<Field> |
getCompositeIds(Class<?> entityClass) |
Connection |
getConnection() |
org.hibernate.boot.Metadata |
getMetadata() |
org.hibernate.engine.spi.SessionFactoryImplementor |
getSessionFactory() |
Map<String,Object> |
getSettings() |
static boolean |
hasIdGenerator(Class<?> entityClass) |
static EntityIntegrator |
of(Map<String,Object> settings) |
static EntityIntegrator |
of(Map<String,Object> settings,
Collection<Class<?>> annotatedClasses) |
static EntityIntegrator |
of(org.springframework.transaction.PlatformTransactionManager transactionManager) |
static EntityIntegrator |
of(org.hibernate.SessionFactory sessionFactory) |
<T> T |
transaction(boolean autoCommit,
SessionCallable<T> callable) |
<T> T |
transaction(SessionCallable<T> callable) |
public static final String SESSION_FACTORY
public static final String AUDIT_IDENTIFIER
public static final String AUDIT_SESSION_FACTORY
public org.hibernate.boot.Metadata getMetadata()
public org.hibernate.engine.spi.SessionFactoryImplementor getSessionFactory()
public Collection<Class<?>> getAnnotatedClasses()
public Connection getConnection() throws SQLException
SQLExceptionpublic <T> T transaction(boolean autoCommit,
SessionCallable<T> callable)
public <T> T transaction(SessionCallable<T> callable)
public void destroy()
public static EntityIntegrator of(org.hibernate.SessionFactory sessionFactory)
public static EntityIntegrator of(Map<String,Object> settings, Collection<Class<?>> annotatedClasses)
public static EntityIntegrator of(Map<String,Object> settings)
public static EntityIntegrator of(org.springframework.transaction.PlatformTransactionManager transactionManager)
public static boolean hasIdGenerator(Class<?> entityClass)
Copyright © 2023. All rights reserved.