klyn.data.sql.internal.SQLMappedEntity.snapshot
method

    public snapshot(entity as Object) as ArrayList<Object>:

Description

Captures mapped scalar values for change tracking.

SQL scalar mappings are immutable values. Keeping their boxed values is therefore sufficient and avoids deep-copying complete entity graphs on every materialization.

Parameters

Parameter | Description
--- | ---
`entity` | Entity to snapshot.

Returns

Values in physical mapping order.

Example

    snapshot = mapped.snapshot(user)