Bugs join-fetching a collection when scrolling with a stateless session using enhancement as proxy

Description

This is specifically a problem:

  • enhancement as proxy is enabled (hibernate.bytecode.allow_enhancement_as_proxy=true);

  • a stateless session is used;

  • results from a query involving an entity with a join fetched collection (that is normally lazy) is scrolled.

  • join fetched collection has a to-one association with an entity that is an inheritance hierarchy.

The join fetched collection is not initialized, and Hibernate executes an extra query to initialize the to-one association with an entity in a collection element.

Environment

None

Activity

Show:
Gail Badner
October 16, 2019, 6:28 PM

Fixed in master branch.

Gail Badner
November 7, 2019, 6:00 AM

Fixed in 5.3 branch as well.

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