PostgreSQL does not consider alias-specific LockMode

Description

In 5.2, tests fail for PostgreSQL:

hibernate-core:

This happens because PostgreSQL uses lock aliases, and the PostgreSQL Dialect logic seems to ignore it altogether. So, if we are providing an alias, we should be taking the LockMode associated to that specific alias.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure