T - aggregate root typepublic final class History<T extends AggregateRoot> extends java.lang.Object implements Identifiable
aggregate root snapshots.
Snapshot is created whenever aggregate is created, modified or deleted if
history concept is enabled.
DSL example:
module Blog {
aggregate Post {
string content;
history;
}
}
| Constructor and Description |
|---|
History(java.util.List<Snapshot<T>> Snapshots) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Snapshot<T>> |
getSnapshots()
Sequence of persisted snapshots.
|
java.lang.String |
getURI()
aggregate root identity |
public java.lang.String getURI()
aggregate root identitygetURI in interface Identifiablepublic java.util.List<Snapshot<T>> getSnapshots()
aggregate root.