[
https://issues.apache.org/jira/browse/DBUTILS-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17692477#comment-17692477
]
Carl Franklin Hall commented on DBUTILS-150:
--------------------------------------------
BeanProcessor gets an indexed read method of {{getAnotherList(int) <return
SInt64Value>}} rather than {{{}getAnotherListList() <return
List<SInt64Value>{}}}. It isn't getting a write method for {{anotherList}}
which will block it from attempting to write the column to the property. Same
thing happens for {{{}fldMap{}}}.
I'll add a commit to fix the mishandling of IndexedPropertyDescriptor. I'll
need to think and test a bit more to see if there's a way to get the property
descriptors for these fields to return a write method.
> BeanProcessor populateBean does not work when PropertyDescriptor is of type
> ----------------------------------------------------------------------------
>
> Key: DBUTILS-150
> URL: https://issues.apache.org/jira/browse/DBUTILS-150
> Project: Commons DbUtils
> Issue Type: Improvement
> Affects Versions: 1.7
> Reporter: Miguel Costa
> Assignee: Carl Franklin Hall
> Priority: Major
> Fix For: 1.8
>
> Attachments: 2023-02-14 10_14_48-Window.png, 2023-02-14
> 10_17_28-Window.png, TestCopy.java
>
>
> I've been using DB utils for a while to help me handle some custom beans
> (Protobufs)
> Anyway while debugging an issue I'm facing I noticed that the function
> BeanProcessor.populateBean is not able to handle
> PropertyDescriptor when their class is IndexedPropertyDescriptor instead of a
> normal PropertyDescriptor.
> IndexedPropertyDescriptor extends PropertyDescriptor so I would expect this
> to work without any issue, but currently it does not
>
> I can provide a PR for review with my best approach for it
--
This message was sent by Atlassian Jira
(v8.20.10#820010)