SABSTariffEvent.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 = "sabstariffevent")
@Access(AccessType.FIELD)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "sabstariffEvent")
public class SABSTariffEvent extends Event implements EnumTypedEvent<SABSTariffEventType> {

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

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

    public SABSTariffEvent(SABSTariffEventType eventTypeParam, String username) {
        super(username);
        this.eventType = eventTypeParam;
    }

    public SABSTariffEvent() {

    }

    public SABSTariffEvent(String username) {
        super(username);
    }

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

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

}