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 Hibernate Doubt in HQL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Hibernate Doubt in HQL" Watch "Hibernate Doubt in HQL" New topic
Author

Hibernate Doubt in HQL

vinayreddy podduturi
Greenhorn

Joined: Mar 11, 2012
Posts: 12
I have an SQL query which is Union of two select statements like

SELECT column_name(s) FROM table_name1
UNION
SELECT column_name(s) FROM table_name2


Then What is the procedure to write same SQL query in HQL query in hibernates. Any help will be appreciated. And its urgent please. Thank you.
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1098

just did a very quick search (hibernate union), and the first four answers were very enlightening.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19232

vinayreddy podduturi wrote:And its urgent please.

Please EaseUp. There is no such thing as urgent around here.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate Doubt in HQL
 
Similar Threads
get column value from column name
Mixing direct SQL with HQL in the same transaction
Stored Procedure inside HQL query?
subquery sql to hql
OrderBy