EmailLogEvent.java

/*
 * +====================================================================+
 * |         Copyright (C) 2015 Rochester Institute of Technology,      |
 * |            103 Lomb Memorial Drive, Rochester, NY - 14623          |
 * |                        All Rights Reserved.                        |
 * +====================================================================+
 *   FILENAME
 *    EmailLogEvent.java
 *
 *   AUTHOR
 *    @author mhickson
 *
 * =====================================================================
 */

package edu.rit.coopeval.model;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@Entity
@Table(name = "EMAILLOGEVENT")
@JsonIgnoreProperties(value = {"evaluationByEvaluationId"})
public class EmailLogEvent extends AuditableEntity {

    @Id
    @Column(name = "EMAILLOGEVENTID", nullable = false, insertable = true, updatable = true, precision = 0)
    private long emailLogEventId;

    @Column(name = "RECIPIENT", nullable = true, insertable = true, updatable = true, length = 64)
    private String recipient;

    @Lob
    @Column(name = "CC", nullable = true, insertable = true, updatable = true)
    private String cc;

    @Lob
    @Column(name = "BCC", nullable = true, insertable = true, updatable = true)
    private String bcc;

    @Column(name = "SENDER", nullable = true, insertable = true, updatable = true, length = 64)
    private String sender;

    @ManyToOne
    @JoinColumn(name = "EMAILCONTENTID")
    private EmailContent emailContentByEmailContentId;

    @ManyToOne
    @JoinColumn(name = "LOGEVENTID")
    private LogEvent logEventByLogEventId;

    @ManyToOne
    @JoinColumn(name = "EVALUATIONID")
    private Evaluation evaluationByEvaluationId;

    public long getEmailLogEventId() {
        return emailLogEventId;
    }

    public void setEmailLogEventId(long emailLogEventId) {
        this.emailLogEventId = emailLogEventId;
    }

    public String getRecipient() {
        return recipient;
    }

    public void setRecipient(String recipient) {
        this.recipient = recipient;
    }

    public String getCc() {
        return cc;
    }

    public void setCc(String cc) {
        this.cc = cc;
    }

    public String getBcc() {
        return bcc;
    }

    public void setBcc(String bcc) {
        this.bcc = bcc;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public EmailContent getEmailContentByEmailContentId() {
        return emailContentByEmailContentId;
    }

    public void setEmailContentByEmailContentId(EmailContent emailContentByEmailContentId) {
        this.emailContentByEmailContentId = emailContentByEmailContentId;
    }

    public LogEvent getLogEventByLogEventId() {
        return logEventByLogEventId;
    }

    public void setLogEventByLogEventId(LogEvent logEventByLogEventId) {
        this.logEventByLogEventId = logEventByLogEventId;
    }

    public Evaluation getEvaluationByEvaluationId() {
        return evaluationByEvaluationId;
    }

    public void setEvaluationByEvaluationId(Evaluation evaluationByEvaluationId) {
        this.evaluationByEvaluationId = evaluationByEvaluationId;
    }
}