aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate Doubt in 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 "Hibernate Doubt in HQL" Watch "Hibernate Doubt in HQL" New topic
Author

Hibernate Doubt in HQL

vinayreddy podduturi
Greenhorn

Joined: Mar 11, 2012
Posts: 13
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: 1107

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

Joined: Oct 27, 2005
Posts: 19762
    
  20

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 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate Doubt in HQL