You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quick question: does the framework support search function on Map type
property, for example, we have an entity A which has a property Map<String,
String> m, then I want to filter A base on the key of the map m, is there a way
to do it, I tried m.key, but it didn't work. I searched the posts here, and it
says "Filtering on collection properties with SOME, ALL, and NONE is
implemented in 0.4.2.", but are they only for List type?
If I post this in the wrong place, please correct me, I haven't found any other
place to post question, sorry in advance.
By the way, it is an awesome framework, especially the search function, one of
my favorite frameworks now.
Thank you very much.
RetRo
Original issue reported on code.google.com by RetRo.Li...@gmail.com on 6 Oct 2010 at 1:35
The text was updated successfully, but these errors were encountered:
No I don't think think the framework supports this yet. HQL does apparently
support it as follows:
"You can use HQL built-in function: index() eg.
select item, index(item) from Order order
join order.items item
where index(item) = 'foobar'
where order.items is Map"
-- http://forum.springsource.org/archive/index.php/t-32224.html
By the way, the best place to post questions is here:
http://groups.google.com/group/java-generic-dao. That's the discussion group
for the framework. But I'll leave this here since it's a good feature
suggestion.
Original comment by dwolvert on 6 Oct 2010 at 1:03
Developer note:
Use ".index" just like ".size". But maybe both of these need to be adjusted so
they don't step on legitimate properties "index" and "size".
Original comment by dwolvert on 7 Oct 2010 at 1:30
Original issue reported on code.google.com by
RetRo.Li...@gmail.com
on 6 Oct 2010 at 1:35The text was updated successfully, but these errors were encountered: