Subselect fetching is not used for collections if their entity owners are initialized in a batch

Description

An entity class is batch enabled and is using SUBSELECT fetch.

When loading a set of entities and their associations using ID based proxies created with em.getReference(...), rather than using subselect each assocation is loaded with an individual query like the below:

Environment

None

Status

Assignee

Gail Badner

Reporter

Stephen Fikes

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