DocumentEvent.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 = "documentevent")
@Access(AccessType.FIELD)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "DocumentEvent")
public class DocumentEvent extends Event implements EnumTypedEvent<DocumentEventType> {
/**
* UID.
*/
private static final long serialVersionUID = 1L;
/**
* Event type.
*/
@Enumerated(EnumType.STRING)
private DocumentEventType eventType;
public DocumentEvent() {
}
public DocumentEvent(DocumentEventType eventTypeParam, String username) {
super(username);
this.eventType = eventTypeParam;
}
@Override
public DocumentEventType getEventType() {
return eventType;
}
@Override
public void setEventType(DocumentEventType eventTypeParam) {
this.eventType = eventTypeParam;
}
}