File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: fetching ElementCollection using HQL
 
Similar Threads
Collection mapping of Elements in JPA
How to get user name
Unable to remove entity
hibernate list in list search
how to access the fields of result of named query ?