Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1677

It should be possible to exclude fields in ReflectionDiffBuilder

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.12.0
    • 3.13.0
    • lang.builder.*
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dennis@ennovative-solutions.be Dennis Baerten
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 10m
                  3h 10m