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:
parent
fa17de8c92
commit
3456c533b9
|
@ -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";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue