org.axonframework.eventstore.jpa
Class SnapshotEventEntry
java.lang.Object
org.axonframework.eventstore.jpa.AbstractEventEntryData<byte[]>
org.axonframework.eventstore.jpa.AbstractEventEntry
org.axonframework.eventstore.jpa.SnapshotEventEntry
- All Implemented Interfaces:
- SerializedDomainEventData<byte[]>
@Entity
public class SnapshotEventEntry
- extends AbstractEventEntry
JPA compatible entry that stores data required for the use of snapshot events.
- Since:
- 0.5
- Author:
- Allard Buijze
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnapshotEventEntry
protected SnapshotEventEntry()
- Default constructor, as required by JPA specification. Do not use directly!
SnapshotEventEntry
public SnapshotEventEntry(String type,
DomainEventMessage event,
SerializedObject<byte[]> payload,
SerializedObject<byte[]> metaData)
- Initialize an Event entry for the given
event
.
- Parameters:
type
- The type identifier of the aggregate root the event belongs toevent
- The event to store in the eventstorepayload
- The serialized version of the EventmetaData
- The serialized metaData of the Event
Copyright © 2010-2016. All Rights Reserved.