[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.
Nicolas Billard (JIRA)
noreply at atlassian.com
Thu Dec 7 03:33:04 EST 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2288?page=comments#action_25583 ]
Nicolas Billard commented on HHH-2288:
--------------------------------------
I don't understand your comment : did you mean that you can't see in the source code the access to the nested beans ? I checked in the zip and it's OK ...
Can you explain a little so I can give you a better answer ?
Thanks in advance.
> 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