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

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

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

    public CreditorBillingTransactionEvent() {

    }

    public CreditorBillingTransactionEvent(CreditorBillingTransactionEventType eventType, String username) {
        super(username);
        this.eventType = eventType;
    }

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

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