T - aggregate root typepublic final class History<T extends AggregateRoot> extends java.lang.Object implements Identifiable
aggregate root snapshots.
If the history concept is enabled, a snapshot is created whenever an
aggregate root is created, modified or deleted.
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