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

Nicolas Billard (JIRA) noreply at atlassian.com
Wed Dec 6 09:43:04 EST 2006


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: Hibernate3
        Type: Improvement

  Components: query-sql, query-hql, query-criteria  
    Versions: 3.2.1    
 Environment: Developped based on hibernate v 3.2.1
    Reporter: Nicolas Billard
    Priority: Minor
 Attachments: ResultTransformerImprovement.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