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 ElementsModifier and TypeOptional ElementDescriptionboolean
boolean
boolean
boolean
Class<? extends Interceptor>
Class<? extends StatementInspector>
boolean
Shorthand forstatementInspectorClass = org.hibernate.testing.jdbc.SQLStatementInspector.class
-
Element Details
-
sessionFactoryName
String sessionFactoryName- Default:
- ""
-
generateStatistics
boolean generateStatistics- Default:
- false
-
exportSchema
boolean exportSchema- Default:
- true
-
createSecondarySchemas
boolean createSecondarySchemas- Default:
- false
-
interceptorClass
Class<? extends Interceptor> interceptorClass- Default:
- org.hibernate.Interceptor.class
-
statementInspectorClass
Class<? extends 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
-