Package org.hibernate.testing.orm.junit
Annotation Interface SessionFactory
@Inherited
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@TestInstance(PER_CLASS)
@ExtendWith(FailureExpectedExtension.class) @ExtendWith(ServiceRegistryExtension.class) @ExtendWith(ServiceRegistryParameterResolver.class) @ExtendWith(DomainModelExtension.class) @ExtendWith(DomainModelParameterResolver.class) @ExtendWith(SessionFactoryExtension.class) @ExtendWith(SessionFactoryParameterResolver.class) @ExtendWith(SessionFactoryScopeParameterResolver.class)
public @interface SessionFactory
-
Optional Element Summary
Optional Elements
-
Element Details
-
sessionFactoryName
String sessionFactoryName- Default:
- ""
-
generateStatistics
boolean generateStatistics- Default:
- false
-
exportSchema
boolean exportSchema- Default:
- true
-
createSecondarySchemas
boolean createSecondarySchemas- Default:
- false
-
interceptorClass
Class<? extends org.hibernate.Interceptor> interceptorClass- Default:
- org.hibernate.Interceptor.class
-
statementInspectorClass
Class<? extends org.hibernate.resource.jdbc.spi.StatementInspector> statementInspectorClass- Default:
- org.hibernate.resource.jdbc.spi.StatementInspector.class
-
useCollectingStatementInspector
boolean useCollectingStatementInspectorShorthand forstatementInspectorClass = org.hibernate.testing.jdbc.SQLStatementInspector.class- See Also:
- Default:
- false
-
applyCollectionsInDefaultFetchGroup
boolean applyCollectionsInDefaultFetchGroup- Default:
- true
-