[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2774) Call ResultTransformer.transformList() even if the list argument is an empty list

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Thu Aug 9 06:37:13 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27778 ] 

Max Rydahl Andersen commented on HHH-2774:
------------------------------------------

as far as i remember the processing is optimized this way....and what is the usecase that generates data when the query returns 0 elements ?

> Call ResultTransformer.transformList() even if the list argument is an empty list
> ---------------------------------------------------------------------------------
>
>                 Key: HHH-2774
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2774
>             Project: Hibernate3
>          Issue Type: Improvement
>          Components: core
>            Reporter: Christian Bauer
>            Priority: Trivial
>
> I have a case where a ResultTransformer is doing all the work in transformTuple() and always returns null from that method. The transformed target state is held internally in the ResultTransformer instance (I basically turn many tuples into one). Now I can't get this state out of the ResultTransformer because transformList() is not called after transformTuple(). 
> It would be better if transformList() is called even if the list of tuples returned by transformTuple() is empty.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list