Skip to main content
Version: Next

EntityComparator

Index

Constructors

constructor

Methods

diffEntities

mapResult

matching

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

    • T

    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

    • T

    Parameters

    Returns boolean