Hi Peter, why don't you just use another query to search by the identifier
?



"Peter Friese (JIRA)" <[EMAIL PROTECTED]> writes:
>     [
>http://galaxy.andromda.org:8080/jira/browse/SPRING-48?page=comments#action_11153
>]
>     
>Peter Friese commented on SPRING-48:
>------------------------------------
>
>Ah, I wanted to suggest that if the return type of the query operation is
>HashMap or Map, then the template should automatically switch from
>returning a list to returning a map. But I guess this is pretty obvious.
>
>> 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




---------------------------------------------------------------------------
Walter Itamar Mour�o - Diretor de Tecnologia e Projetos - Arcadian S/A
www.arcadian.com.br



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