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 0b72774e37..2258a6a1ba 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java @@ -328,6 +328,15 @@ public class DB2Dialect extends Dialect { return " for read only with rs use and keep update locks"; } + @Override + public boolean supportsSkipLocked() { + return true; + } + + @Override + public String getForUpdateSkipLockedString() { + return getForUpdateString() + " skip locked data"; + } @Override public boolean supportsOuterJoinForUpdate() { return false;