Bug 1197261 - [GSS] (6.4.z) HHH-9642 - Embedded OneToMany association fetch join does not work in CriteriaQuery
Summary: [GSS] (6.4.z) HHH-9642 - Embedded OneToMany association fetch join does not w...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Hibernate
Version: 6.1.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: EAP 6.4.2
Assignee: Gail Badner
QA Contact: Martin Simka
URL:
Whiteboard:
Depends On:
Blocks: 1196113 1201912 1201914 1219165 1230279
TreeView+ depends on / blocked
 
Reported: 2015-02-27 23:34 UTC by Stephen Fikes
Modified: 2019-07-11 08:42 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1201912 1201914 1230279 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
Simple Maven based pure-hibernate test (10.40 KB, application/zip)
2015-02-27 23:34 UTC, Stephen Fikes
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1394093 0 None None None Never

Description Stephen Fikes 2015-02-27 23:34:55 UTC
Created attachment 996264 [details]
Simple Maven based pure-hibernate test

Description of problem:
When using join fetch for an association that is part of an @Embeddable, the association is not joined or fetched

Version-Release number of selected component (if applicable):
Hibernate 4.2.x

How reproducible:
Consistently

Steps to Reproduce:
root.fetch(ParentEntity_.embedded).fetch(EmbeddedEntity_.children);

Actual results:
The root class is fetched. The SQL shows no join and subsequent access to the association results in an implicit database query.

Expected results:
The assocation should be join fetched

Additional info:
Test seems to conform to the example in http://docs.jboss.org/hibernate/orm/4.2/devguide/en-US/html/ch12.html#querycriteria-from-fetch

Comment 5 Stephen Fikes 2015-03-04 17:12:16 UTC
https://hibernate.atlassian.net/browse/HHH-9642

Comment 7 Gail Badner 2015-03-13 04:43:22 UTC
Fixed upstream in 4.2 branch by commit: https://github.com/hibernate/hibernate-orm/commit/1227b73e1e7430122d0b390fc053770844e68af3

Comment 8 Martin Simka 2015-06-22 14:48:12 UTC
verified
EAP 6.4.2.CP.CR1

Comment 9 Petr Penicka 2017-01-17 10:16:38 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.

Comment 10 Petr Penicka 2017-01-17 10:16:39 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.


Note You need to log in before you can comment on or make changes to this bug.