-->
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: making a LEFT JOIN on a collection filter. Is it possible?
PostPosted: Thu Jan 20, 2005 10:59 am 
Newbie

Joined: Mon Dec 27, 2004 10:23 am
Posts: 7
Hi, I'm using

hibernate 2.1.6 with mysql on windows xp pro and java 5

I have Resource entities that are linked with AccessRights entities which are associated with User and Role entities

Is it possible to filter the accessrights from the Resource based on the user id.

i.e., I'd like to do something like this:

Code:
FROM this LEFT JOIN this.users AS user WHERE path=:path AND name=:name AND (user.userId=:userId OR rights.role.roleId IN (:groupIds)) AND (rights.flags&:permission!=0)


bernard


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 20, 2005 11:02 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Did you try it?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 20, 2005 5:22 pm 
Newbie

Joined: Mon Dec 27, 2004 10:23 am
Posts: 7
sorry for the noise... hibernate rocks!


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.