public snapshot(entity as Object) as ArrayList<Object>:
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.
| Parameter | Description |
|---|---|
entity | Entity to snapshot. |
Values in physical mapping order.
snapshot = mapped.snapshot(user)