Skip to content

Session Factory Statement Inspector

Key: hibernate.session_factory.statement_inspector

Env Var: HIBERNATE_SESSION_FACTORY_STATEMENT_INSPECTOR

Scope: Global

Description: Used to configure a StatementInspector implementation for use with hibernate. The StatementInspector is a contract to allow inspection (and swapping) of SQL to be prepared. When used with com.qvera.qie.persistence.SQLServerCountSafeStatementInspector, QIE also appends SET NOCOUNT OFF in doUpdate... methods.

Examples

Env Var

HIBERNATE_SESSION_FACTORY_STATEMENT_INSPECTOR=com.qvera.qie.persistence.SQLServerCountSafeStatementInspector

Java Option

-Dhibernate.session_factory.statement_inspector=com.qvera.qie.persistence.SQLServerCountSafeStatementInspector

YAML

HIBERNATE_SESSION_FACTORY_STATEMENT_INSPECTOR: "com.qvera.qie.persistence.SQLServerCountSafeStatementInspector"