This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 19649
    
  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
get column value from column name
subquery sql to hql
Stored Procedure inside HQL query?
OrderBy
Mixing direct SQL with HQL in the same transaction