Skip to content

Entity class

Represents one entity.


The default constructor. ⊕ new Entity(parent?: Entity): Entity



List of Attributes that belong to this entity.

● attributes: EntityAttr[]


The caption of entity.

● caption: string


The description of entity.

● description: string


The endpoint of entity. It is used for odata or graphql brokers

● endpoint?: string


The name of entity.

● name: string


The parent.

● parent: Entity


List of sub entities that belong to this entity.

● subEntities: Entity[]


The value indicating whether the attribute can be used in query conditions.

● useInConditions: boolean


The value indicating whether the attribute can be used in result columns (SELECT clause).

● useInResult: boolean


The value indicating whether the attribute can be used in sorting.

● useInSorting: boolean



Loads entity from its JSON representation object.

▸ loadFromData(model: DataModel,data: EntityData): void

Returns void