SubShipmentEvent.java

package com.tradecloud.domain.event;

import javax.persistence.*;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

@Entity
@Table(name = "SubShipmentEvent")
@Access(AccessType.FIELD)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "SubShipmentEvent")
public class SubShipmentEvent extends Event implements EnumTypedEvent<SubShipmentEventType> {

    /**
     * UID.
     */
    private static final long serialVersionUID = 1L;

    /**
     * Event type.
     */
    @Enumerated(EnumType.STRING)
    private SubShipmentEventType eventType;

    public SubShipmentEvent(SubShipmentEventType eventType, String username) {
        super(username);
        this.eventType = eventType;
    }

    public SubShipmentEvent() {
    }

    @Override
    public SubShipmentEventType getEventType() {
        return eventType;
    }

    @Override
    public void setEventType(SubShipmentEventType eventType) {
        this.eventType = eventType;
    }
}