Loading vessels-lib/src/main/java/es/redmic/vesselslib/events/vessel/partialupdate/vesseltype/AggregationVesselTypeInVesselPostUpdateEvent.java 0 → 100644 +41 −0 Original line number Diff line number Diff line package es.redmic.vesselslib.events.vessel.partialupdate.vesseltype; import java.util.UUID; import org.apache.avro.Schema; import es.redmic.vesselslib.dto.VesselTypeDTO; import es.redmic.vesselslib.events.vesseltype.common.VesselTypeEvent; public class AggregationVesselTypeInVesselPostUpdateEvent extends VesselTypeEvent { // @formatter:off public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{" + "\"type\":\"record\",\"name\":\"AggregationVesselTypeInVesselPostUpdateEvent\"," + "\"namespace\":\"es.redmic.vesselslib.events.vessel.partialupdate.vesseltype\",\"fields\":[" + getVesselTypeEventSchema() + "," + getEventBaseSchema() + "]}"); // @formatter:on public AggregationVesselTypeInVesselPostUpdateEvent() { super(""); setSessionId(UUID.randomUUID().toString()); } public AggregationVesselTypeInVesselPostUpdateEvent(String type) { super(type); setSessionId(UUID.randomUUID().toString()); } public AggregationVesselTypeInVesselPostUpdateEvent(String type, VesselTypeDTO vesselType) { super(type); this.setVesselType(vesselType); setSessionId(UUID.randomUUID().toString()); } @Override public Schema getSchema() { return SCHEMA$; } } Loading
vessels-lib/src/main/java/es/redmic/vesselslib/events/vessel/partialupdate/vesseltype/AggregationVesselTypeInVesselPostUpdateEvent.java 0 → 100644 +41 −0 Original line number Diff line number Diff line package es.redmic.vesselslib.events.vessel.partialupdate.vesseltype; import java.util.UUID; import org.apache.avro.Schema; import es.redmic.vesselslib.dto.VesselTypeDTO; import es.redmic.vesselslib.events.vesseltype.common.VesselTypeEvent; public class AggregationVesselTypeInVesselPostUpdateEvent extends VesselTypeEvent { // @formatter:off public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{" + "\"type\":\"record\",\"name\":\"AggregationVesselTypeInVesselPostUpdateEvent\"," + "\"namespace\":\"es.redmic.vesselslib.events.vessel.partialupdate.vesseltype\",\"fields\":[" + getVesselTypeEventSchema() + "," + getEventBaseSchema() + "]}"); // @formatter:on public AggregationVesselTypeInVesselPostUpdateEvent() { super(""); setSessionId(UUID.randomUUID().toString()); } public AggregationVesselTypeInVesselPostUpdateEvent(String type) { super(type); setSessionId(UUID.randomUUID().toString()); } public AggregationVesselTypeInVesselPostUpdateEvent(String type, VesselTypeDTO vesselType) { super(type); this.setVesselType(vesselType); setSessionId(UUID.randomUUID().toString()); } @Override public Schema getSchema() { return SCHEMA$; } }