You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Fabio Borriello (Jira)" <ji...@apache.org> on 2019/12/03 05:57:00 UTC

[jira] [Comment Edited] (BEANUTILS-524) Make BeanUtils copyProperties able to copy Immutable, Mutable and Mixed Java Bean

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

Fabio Borriello edited comment on BEANUTILS-524 at 12/3/19 5:56 AM:
--------------------------------------------------------------------

[~melloware] yes it could be possible, but can you provide an example of what do you expect?
 It would clarify a lot.  If I understood well, I already implemented something similar in the CopyProperties method that takes in input a BeanTransformer too (that can be overloaded as you suggested).
 Thanks


was (Author: fborriello):
[~melloware] yes it could be possible, but can you provide an example of what do you expect?
It would clarify a lot.
Thanks 

> Make BeanUtils copyProperties able to copy Immutable, Mutable and Mixed Java Bean
> ---------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-524
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-524
>             Project: Commons BeanUtils
>          Issue Type: New Feature
>          Components: Locale BeanUtils / Converters
>            Reporter: Fabio Borriello
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> h4. Overview
> the copyProperties method in the BeanUtils class, is able to copy only public properties or the ones with a public setter method.
> it would be really useful if this functionality can be extended in order to copy any kind of Java Bean: Mutable, Immutable, Mixed.
> h4. Solution 
> Evaluate  the possibility to use, behind the scenes, an open source library that is able to copy Mutable, Immutable and Mixed Java Bean. The library In object is [BULL|https://github.com/HotelsDotCom/bull]. 
> This would also make able to copy nested objects.



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