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.
|