@Bean
        @ConditionalOnMissingBean(name = "jpaAuditTrailEntityFactory")
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public JpaEntityFactory<AuditTrailEntity> jpaAuditTrailEntityFactory(final CasConfigurationProperties casProperties) {
            val dialect = casProperties.getAudit().getJdbc().getDialect();
            return new JdbcAuditTrailEntityFactory(dialect);
        }
This is {@link CasJdbcAuditAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-audit-jdbc/src/main/java/org/apereo/cas/config/CasJdbcAuditAutoConfiguration.java