Skip to main content
Version: Next

EntityComparator

Index

Constructors

constructor

Methods

diffEntities

mapResult

matching

  • matching(entityName, a, b): boolean

prepareEntity

  • Removes ORM specific code from entities and prepares it for serializing. Used before change set computation. References will be mapped to primary keys, collections to arrays of primary keys.


    Parameters

    • entity: T

    Returns EntityData<T>

staticisComparable

  • isComparable(prop, root): boolean
  • perf: used to generate list of comparable properties during discovery, so we speed up the runtime comparison


    Parameters

    Returns boolean