Skip to main content
Version: 5.2

EntityComparator

Index

Constructors

constructor

Methods

diffEntities

mapResult

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.


    Type parameters

    Parameters

    • entity: T

    Returns EntityData<T>

staticisComparable

  • perf: used to generate list of comparable properties during discovery, so we speed up the runtime comparison


    Type parameters

    Parameters

    Returns boolean