-->
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: Condition on Join
PostPosted: Thu Oct 06, 2005 7:56 pm 
Newbie

Joined: Wed Sep 28, 2005 1:05 am
Posts: 5
I need to apply a condition on the Join not in the where clause. SQL supports this. I read on JIRA that Hibernate 3.1 beta version should be able to do this. But teh output of teh following query is not correct.

Code between sessionFactory.openSession() and session.close():
select p from Portals p left outer join p.clientPortalsSet as cp with cp.clients.feedId = 1
where cp.clientPortalId is not null

The output of this is that of the following query
select p from Portals p left outer join p.clientPortalsSet as cp
where cp.clientPortalId is not null and cp.clients.feedId = 1

I need to select all teh portals from Client portal set where they do not have a feed id.

Can some one please help me with this ?
Thanks.

Hibernate version:
Hibernate 3.1 beta

Name and version of the database you are using:
POstgresql


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.