-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Union/Union all for Independent two tables
PostPosted: Fri Jun 08, 2012 8:34 am 
Newbie

Joined: Tue Sep 20, 2011 10:17 am
Posts: 4
Hi all,

As we know that hql dont support union/union all.
Regarding this issue i collect some ideas of solutions,

1. using the method createSqlQuery(queryString) in hibernate.
2. Execute as two queries.


But,
I need solution like,
registerFunction("union", new StandardSQLFunction("union"));

(or)

Is their any other possible way to achieve Union/Union all function in hql.

I need result/suggestion from you... Thanks in advance..


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.