@JaversStream class.
Overview
| Annotation | Javers SnapshotType | When it fires |
|---|---|---|
@OnInitial | INITIAL | First time Javers audits an entity — typically on creation |
@OnUpdate | UPDATE | Subsequent modifications to an already-tracked entity |
@OnTerminal | TERMINAL | Entity deleted from the audited repository |
Supported Signatures
All three annotations support the same signature styles:Entity + Context
Context Only
Entity Only
Notes
- Each
@JaversStreamclass can have at most one handler per snapshot type - If no handler matches the snapshot type, the event is silently skipped
- For
@OnTerminal, the entity represents the last known state before deletion - The
JaversChangeContextexposes both the native JaversCdoSnapshotand FlowWarden event metadata