[ 
http://galaxy.andromda.org:8080/jira/browse/SPRING-48?page=comments#action_11157
 ]
     
Chad Brandon commented on SPRING-48:
------------------------------------

Yeah it could return a Map depending on whether or not the modeled finder has a 
Map return type, that's how I do it with Sets, Lists and Collections (it 
shouldn't be a HashMap, that would be too implementation specific to be modeled)

> Let query operations return not only Lists, but Maps also.
> ----------------------------------------------------------
>
>          Key: SPRING-48
>          URL: http://galaxy.andromda.org:8080/jira/browse/SPRING-48
>      Project: Spring Cartridge
>         Type: Improvement
>     Versions: 3.0RC1
>     Reporter: Peter Friese
>     Assignee: Chad Brandon
>      Fix For: 3.0RC1

>
>
> Currently, DAO query operations will return either a set, a collection or a 
> single entity. I propose to also return Maps (HashMap), with the entity 
> identifier being the key. 
> The reason I ask for this feature is that we need to peek into the results of 
> a query operation using the primary key of an entity. Iterating over the 
> result set is too expensive, since we will be doing this in a loop (we are 
> doing some kind of data mining here).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://galaxy.andromda.org:8080/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to