use of com.querydsl.sql.SQLTemplates in project querydsl by querydsl.
the class JdbcConfiguration method querydslConfiguration.
@Bean
public com.querydsl.sql.Configuration querydslConfiguration() {
SQLTemplates templates = H2Templates.builder().build();
com.querydsl.sql.Configuration configuration = new com.querydsl.sql.Configuration(templates);
configuration.setExceptionTranslator(new SpringExceptionTranslator());
configuration.register(new DateTimeType());
configuration.register(new LocalDateType());
return configuration;
}
Aggregations