HHH-4765 Enhance Dialect support for JPA-2 locking.

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18673 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Scott Marlow 2010-01-30 17:27:32 +00:00
parent fa17de8c92
commit 3456c533b9
1 changed files with 13 additions and 0 deletions

View File

@ -358,4 +358,17 @@ public class PostgreSQLDialect extends Dialect {
// seems to have spotty LOB suppport // seems to have spotty LOB suppport
return false; return false;
} }
public String getForUpdateString() {
return " for update";
}
public String getWriteLockString(int timeout) {
return " for update";
}
public String getReadLockString(int timeout) {
return " for share";
}
} }