File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "fetching ElementCollection using HQL" Watch "fetching ElementCollection using HQL" New topic

fetching ElementCollection using HQL

Luca Cazzaniga

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


I agree. Here's the link:
subject: fetching ElementCollection using HQL
It's not a secret anymore!