Where clauses mapped on collections and entities need parentheses when used in conjunction

Description

Given the following mapping:

Currently, the query for loading Team#expertAndHighLevelPlayers would be something like:

Parentheses should be added to ensure that the separate clauses have the proper precedence, as in:

.

This affects hbm.xml mappings as well.

Environment

None

Assignee

Gail Badner

Reporter

Gail Badner

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure