use of org.hibernate.query.sqm.IntervalType in project hibernate-orm by hibernate.
the class TimestampaddFunction method patternRenderer.
PatternRenderer patternRenderer(TemporalUnit unit, Expression interval, Expression to) {
TemporalType temporalType = getSqlTemporalType(to.getExpressionType());
IntervalType intervalType = getSqlIntervalType(interval.getExpressionType().getJdbcMappings().get(0));
return new PatternRenderer(dialect.timestampaddPattern(unit, temporalType, intervalType));
}
Aggregations