You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2021/09/08 13:02:00 UTC

[jira] [Commented] (DBUTILS-146) BeanProcessor processColumn should receive PropertyDescriptor parameter

    [ https://issues.apache.org/jira/browse/DBUTILS-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17411914#comment-17411914 ] 

Gary D. Gregory commented on DBUTILS-146:
-----------------------------------------

[~assafc]

Thank you for your ticket. 

Feel free to create a PR on GitHub, with tests of course ;-)

> BeanProcessor processColumn should receive PropertyDescriptor parameter
> -----------------------------------------------------------------------
>
>                 Key: DBUTILS-146
>                 URL: https://issues.apache.org/jira/browse/DBUTILS-146
>             Project: Commons DbUtils
>          Issue Type: Improvement
>            Reporter: Assaf
>            Priority: Major
>
> We have a database column which holds List of java google protobuf Messages.
> To compute the column value we need to know the type of class the List holds.
> This info is available in the PropertyDescriptor... but BeanProcessor.processColumn method does not receive it, it receives only the List type (i.e. java.util.List).
> If method processColumn received PropertyDescriptor as param we could call the PropertyDescriptor .getWriteMethod to fetch the java type in the list. 
> This would allow us to extend BeanProcessor and just implement processColumn
> Since PropertyDescriptor is not available we need to override many of the BeanProcessor methods :(
> It would be great if the processColumn method in BeanProcessor receives a param of type PropertyDescriptor
> Thanks!
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)