diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java index 42108b4d94..fbd01045e5 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java @@ -13,6 +13,7 @@ import java.sql.Types; import java.util.Locale; import org.hibernate.JDBCException; +import org.hibernate.MappingException; import org.hibernate.NullPrecedence; import org.hibernate.cfg.Environment; import org.hibernate.dialect.function.AvgWithArgumentCastFunction; @@ -250,6 +251,11 @@ public class DB2Dialect extends Dialect { return "values nextval for " + sequenceName; } + @Override + public String getSelectSequenceNextValString(String sequenceName) throws MappingException { + return "next value for " + sequenceName; + } + @Override public String getCreateSequenceString(String sequenceName) { return "create sequence " + sequenceName;