[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2288) Adding a new ResultTransformer, permitting to instantiate and fill related beans and not to take care of aliases case.

George Gastaldi (JIRA) noreply at atlassian.com
Thu Feb 4 07:14:34 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35465#action_35465 ] 

George Gastaldi commented on HHH-2288:
--------------------------------------

Any news on this ?

> Adding a new ResultTransformer, permitting to instantiate and fill related beans and not to take care of aliases case.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-2288
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2288
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: query-criteria, query-hql, query-sql
>    Affects Versions: 3.2.1
>         Environment: Developped based on hibernate v 3.2.1
>            Reporter: Nicolas Billard
>            Priority: Minor
>         Attachments: ResultTransformerImprovement.zip, ResultTransformerImprovement_v2.zip
>
>
> Are joined to this post 2 classes. Below is the javadoc header of  the ResultTransformer class.
> May be this could be integrated in next hibernate versions ( certainly with improvements ... :p )
> Let me know if anyone finds it useful ...
> ------------------------------------------------------
>  * Transforms resultset to value a bean, via setters.
>  * 
>  * Examples:
>  * 
>  * bean MyBean as 2 setters :
>  * - setId : takes an Integer
>  * - setProduct : takes a Product bean
>  * 
>  * Product bean as 2 setters :
>  * - setId
>  * - setLib
>  * 
>  * resultset may have these columns :
>  * - ID
>  * - PRODUCT_ID
>  * - PRODUCT_LIB
>  * 
>  * A MyBean instance will be created for each tupple, 
>  * and a Product instance will be also created, filled with PRODUCT_ID and PRODUCT_LIB values.

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