-->
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.  [ 3 posts ] 
Author Message
 Post subject: left join don't work
PostPosted: Thu Mar 25, 2004 1:16 pm 
Newbie

Joined: Mon Nov 17, 2003 7:35 am
Posts: 5
Hi,

in mysql 4.0, this sql works fine

SELECT a.description, p.id, a.id FROM actions a LEFT OUTER JOIN permissions p ON p.action_id=a.action_id AND p.group_id=3

how can I do this, using hibernate?
I'm trying this hql query, but the result are different

select a.description, p.id, a.id from Action a left join a.permissions p where p.group is null or p.group.id =3

tks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 25, 2004 3:46 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
on theserverside.com, you'll find chapter6.pdf of hibernate in action, advanced queries are explained

I don't have the doc here, cannot help you


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 25, 2004 4:53 pm 
Newbie

Joined: Mon Nov 17, 2003 7:35 am
Posts: 5
thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.