Skip to content

Commit d9eb7af

Browse files
make sure to return AstTranslatorFactory
1 parent dfa3664 commit d9eb7af

File tree

1 file changed

+8
-0
lines changed
  • spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/aot

1 file changed

+8
-0
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/aot/AotMetamodel.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
import org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl;
4444
import org.hibernate.jpa.boot.internal.PersistenceUnitInfoDescriptor;
4545
import org.hibernate.query.common.TemporalUnit;
46+
import org.hibernate.sql.ast.SqlAstTranslatorFactory;
47+
import org.hibernate.sql.ast.spi.StandardSqlAstTranslatorFactory;
4648
import org.jspecify.annotations.NullUnmarked;
4749
import org.jspecify.annotations.Nullable;
4850
import org.slf4j.Logger;
@@ -205,6 +207,12 @@ public SequenceSupport getSequenceSupport() {
205207
return ANSISequenceSupport.INSTANCE;
206208
}
207209

210+
@Override
211+
public SqlAstTranslatorFactory getSqlAstTranslatorFactory() {
212+
// javadoc implies null would trigger default which is not the case
213+
return new StandardSqlAstTranslatorFactory();
214+
}
215+
208216
@Override
209217
@SuppressWarnings("deprecation")
210218
public String timestampdiffPattern(TemporalUnit unit, TemporalType fromTemporalType, TemporalType toTemporalType) {

0 commit comments

Comments
 (0)