Class DiffHelp


  • public class DiffHelp
    extends Object
    Helper to perform a diff given two beans of the same type.

    This intentionally does not include any OneToMany or ManyToMany properties.

    • Method Detail

      • diff

        public static Map<String,​ValuePairdiff​(Object newBean,
                                                       Object oldBean,
                                                       BeanDescriptor<?> desc)
        Return a map of the differences between a and b.

        A and B must be of the same type. B can be null, in which case the 'dirty values' of a is returned.

        This intentionally does not include as OneToMany or ManyToMany properties.