Class DiffHelp

java.lang.Object
io.ebeaninternal.server.core.DiffHelp

public final 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 Details

    • diff

      public static Map<String,ValuePair> diff(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.