It's not a secret anymore!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 19655
    
  18

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
 
Similar Threads
Stored Procedure inside HQL query?
get column value from column name
subquery sql to hql
OrderBy
Mixing direct SQL with HQL in the same transaction