Package org.hibernate.testing.orm.junit
Annotation Type 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 @interfaceSessionFactory
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanapplyCollectionsInDefaultFetchGroupbooleancreateSecondarySchemasbooleanexportSchemabooleangenerateStatisticsClass<? extendsInterceptor>interceptorClassStringsessionFactoryNameClass<? extendsStatementInspector>statementInspectorClassbooleanuseCollectingStatementInspectorShorthand forstatementInspectorClass = org.hibernate.testing.jdbc.SQLStatementInspector.class
Element Detail
sessionFactoryName
String sessionFactoryName
- Default:
- ""
interceptorClass
Class<? extendsInterceptor> interceptorClass
- Default:
- org.hibernate.Interceptor.class
statementInspectorClass
Class<? extendsStatementInspector> statementInspectorClass
- Default:
- org.hibernate.resource.jdbc.spi.StatementInspector.class
useCollectingStatementInspector
boolean useCollectingStatementInspector
Shorthand forstatementInspectorClass = org.hibernate.testing.jdbc.SQLStatementInspector.class- See Also:
SQLStatementInspector
- Default:
- false