You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/04/04 18:32:00 UTC
[jira] [Work logged] (LANG-1677) It should be possible to exclude fields in ReflectionDiffBuilder
[ https://issues.apache.org/jira/browse/LANG-1677?focusedWorklogId=752428&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-752428 ]
ASF GitHub Bot logged work on LANG-1677:
----------------------------------------
Author: ASF GitHub Bot
Created on: 04/Apr/22 18:31
Start Date: 04/Apr/22 18:31
Worklog Time Spent: 10m
Work Description: garydgregory commented on code in PR #838:
URL: https://github.com/apache/commons-lang/pull/838#discussion_r842029947
##########
src/changes/changes.xml:
##########
@@ -66,6 +66,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="fix" dev="ggregory" due-to="CiprianBodnarescu">Use Set instead of List for checking the contains() method #734.</action>
<action type="fix" dev="kinow" due-to="Roland Kreuzer">Javadoc for StringUtils.substringBefore(String str, int separator) doesn't mention that the separator is an int.</action>
<!
Issue Time Tracking
-------------------
Worklog Id: (was: 752428)
Time Spent: 1h 50m (was: 1h 40m)
> It should be possible to exclude fields in ReflectionDiffBuilder
> ----------------------------------------------------------------
>
> Key: LANG-1677
> URL: https://issues.apache.org/jira/browse/LANG-1677
> Project: Commons Lang
> Issue Type: Wish
> Components: lang.builder.*
> Affects Versions: 3.12.0
> Reporter: Dennis Baerten
> Priority: Major
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> When using ReflectionDiffBuilder to make a diff between two object it will be default include all fields. As stated in the documentation static and transient fields are excluded.
> Using the transient modifier in combination with other frameworks ( such as Hibernate ) also has a side affect that those fields are not persisted.
> The use case I'm trying to solve it making a diff of an object that get's updated and has a LastModificationDate and LastModificationUser and thus will always be a field in the diff.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)