aspose file tools*
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
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


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: fetching ElementCollection using HQL