Embedded OneToMany association fetch join does not work in CriteriaQuery

Description

When using a CriteriaQuery fetch() to join a OneToMany association that is declared in an @Embeddable class, the resulting query omits the JOIN and testing the association accessor shows that the associated collection is not initialized. A second query/fetch cycle is required to initialize the collection.

Environment

None

Status

Assignee

Gail Badner

Reporter

Stephen Fikes

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure