-->
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: Filtering map collection where key is a domain object
PostPosted: Fri Jun 16, 2006 12:39 pm 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
I've got a fiddly HQL question I'm having trouble figuring out:

I have a Permission object which has a Name property and a User object with a Permissions collection consisting of a map (IDictionary) with a Permission object as the key and a boolean as the value (indicating whether the Permission is allowed or denied).

I want to filter the User.Permissions collection by key=Permission.Name and the value=true, but I can't figure out how to do it. I've been messing around with the indicies keyword and the index() function but I'm out of my depth.

Does anyone have any clues for me?

Cheers,

Symon.


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.