Commit bc7fad52 authored by Noel Alonso's avatar Noel Alonso
Browse files

Crea evento para aggregar vessels por vesselType

parent e50e8ee2
Loading
Loading
Loading
Loading
+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$;
	}
}