Eager fetching in SQLQuery for collections of basic/embeddable type

Description

Currently you can't eager fetch an @ElementCollection (basic or embeddable type) in a SQLQuery.

In CustomLoader constructor, when parsing the CollectionFetchReturn, only EntityType is handled as a valid elementType.

Activity

Ivan GolovkoJanuary 24, 2018 at 9:41 PM
Edited

I think yes.
I addeed one more commit with the testing of implicit fetching of EAGER collection.
The bug doesn't reproduce.
https://github.com/ioanngolovko/hibernate-orm/commit/4e4fa17c4887ca5da6b95969a437fbba00e79094

Former userJanuary 24, 2018 at 5:20 AM

Can this issue be closed?

Ivan GolovkoJanuary 20, 2018 at 3:09 PM
Edited

I made a commit in my fork. It includes just 2 tests.
It seems like necessary functionality is already done.
Maybe I misunderstood the issue.

Link to changes: https://github.com/ioanngolovko/hibernate-orm/commit/672c3421b4f559f07abaf7c8f14658bac13500b8

Cannot Reproduce

Details

Assignee

Reporter

Priority

Created May 15, 2013 at 4:54 AM
Updated January 24, 2018 at 10:25 PM
Resolved January 24, 2018 at 10:24 PM

Flag notifications