Package org.axonframework.eventstore.jpa

Examples of org.axonframework.eventstore.jpa.SimpleSerializedDomainEventData


        int metaDataSize = in.readInt();
        byte[] metaData = new byte[metaDataSize];
        in.readFully(metaData);

        return new SimpleSerializedDomainEventData(identifier,
                                        aggregateIdentifier,
                                        sequenceNumber,
                                        timestamp,
                                        payloadType,
                                        payloadRevision,
View Full Code Here


                        id = ByteBufferUtil.string(column.getValueBytes());
                    }
                }

                if (payload != null) {
                    SimpleSerializedDomainEventData domainEventData = new SimpleSerializedDomainEventData(
                            id,
                            aggregateIdentifier,
                            seqNum,
                            timestamp.toString(),
                            type,
View Full Code Here

        UpcasterChain chain = new SimpleUpcasterChain(Collections.<Upcaster>emptyList());
        final SimpleSerializedObject serializedObject = new SimpleSerializedObject<String>("Data", String.class,
                                                                                           "test", "0");
        List<SerializedObject> result = chain.upcast(serializedObject,
                                                     new SerializedDomainEventUpcastingContext(
                                                             new SimpleSerializedDomainEventData(
                                                             "eventId", "aggregateId", 0, DateTime.now(), "test", "0",
                                                             "Data".getBytes(IOUtils.UTF8),
                                                             "meta".getBytes(IOUtils.UTF8)
                                                             ), mock(Serializer.class))
        );
View Full Code Here

TOP

Related Classes of org.axonframework.eventstore.jpa.SimpleSerializedDomainEventData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.