diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java index 66636f85fa..eebb2dada7 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java @@ -472,6 +472,8 @@ public abstract class AbstractHANADialect extends Dialect { return "dayofyear(?2)"; case QUARTER: return "((month(?2)+2)/3)"; + case EPOCH: + return "seconds_between('1970-01-01', ?2)"; default: //I think week() returns the ISO week number return "?1(?2)";