wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes fetching ElementCollection using HQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "fetching ElementCollection using HQL" Watch "fetching ElementCollection using HQL" New topic
Author

fetching ElementCollection using HQL

Luca Cazzaniga
Greenhorn

Joined: Feb 16, 2013
Posts: 12
Hi all,

I'm a newbe of HQL, Im wondering if there is a straight way to fetching an ElementCollection in a query

Given the following class:



The following snippet yields a inner join duplicating the items:



Best regards

Luca


 
jQuery in Action, 2nd edition
 
subject: fetching ElementCollection using HQL