Error in documentation sample code about JPQL and HQL

Description

In 15.17. Collection member references of documentation, in example Example 495. Collection references example the second query is not equivalent to first query because of the select clause.

In the first query select clause selects ph which is a reference to Phone entity, but in second one the select clause selects pr which is a reference to Person.

The second query should be changed to

Status

Assignee

Vlad Mihalcea

Reporter

Amir Pashazadeh

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure