This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Object Relational Mapping and the fly likes UNION 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 "UNION" Watch "UNION" New topic
Author

UNION

Nitin Dindorkar
Greenhorn

Joined: Nov 14, 2003
Posts: 6
Hi
Can some one pl tell me what is HQL equivalent of a UNION.
I want to do UNION of 2 select queries how shouls i do it in HQL?
Regards,
Nitin
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

There isn't an equivalent. You could use a SQL query to achieve it though. Or just use two queries.
[ March 02, 2006: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UNION