-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problem with Union Oracle in HQL
PostPosted: Tue Nov 29, 2005 5:00 am 
Newbie

Joined: Thu Sep 15, 2005 2:23 am
Posts: 2
Hi,

I need to do a query with Outer Join.

This is my query:


select U.id_usuario, U.dc_login, U.dc_clave, R.id_proyecto
from usuarios U, responsables R
where U.id_usuario = R.id_usuario (+) and
(id_proyecto (+)= 2 )


With Outer Join HQL I can't put the criteria (id_proyecto (+)= 2 )

How can I do this?

I try to do with Union of select but I don't know how to do UNION.

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 10, 2006 7:45 pm 
Newbie

Joined: Wed Jan 21, 2004 10:09 am
Posts: 13
Unions are not possible with HQL, see:
http://www.hibernate.org/117.html#A20

Regards,

Mark


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

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.