Skip to content

SpringDataJpaAotDialect must not return null for getSqlAstTranslatorFactory() #4098

@christophstrobl

Description

@christophstrobl

Despite the javdoc stating to return null for default StandardSqlAstTranslatorFactory, an error will occur if trace logging is enabled for org.hibernate.orm.

Caused by: java.lang.NullPointerException: 
  Cannot invoke "org.hibernate.sql.ast.SqlAstTranslatorFactory.buildModelMutationTranslator(org.hibernate.sql.model.ast.TableMutation, org.hibernate.engine.spi.SessionFactoryImplementor)" 
  because the return value of "org.hibernate.dialect.Dialect.getSqlAstTranslatorFactory()" is null

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions