package edu.mit.kc.dashboard.bo;

import org.kuali.coeus.sys.framework.model.KcPersistableBusinessObjectBase;
import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;

import javax.persistence.*;

/**
 * Alert business object
 */
@Entity
@Table(name = "SYSTEM_ALERTS")
public class Alert extends KcPersistableBusinessObjectBase {

    @PortableSequenceGenerator(name = "SEQ_MODULE_ALERT_ID")
    @GeneratedValue(generator = "SEQ_MODULE_ALERT_ID")
	@Id
   	@Column(name = "ALERT_ID")
    private String alertId;

   	@Column(name = "USER_NAME")
    private String userName;

   	@Column(name = "MODULE_NMSPC_CD")
    private String moduleNamespaceCode;

   	@Column(name = "MODULE_NAME")
    private String moduleName;

   	@Column(name = "ALERT_MESSAGE")
    private String alert;

    @Column(name = "PRIORITY")
    private Integer priority;

    @Column(name = "ACTIVE")
    private String active;

	@Column(name = "ALERT_TYPE_ID")
    private Long alertTypeId;
	
    public String getAlertId() {
        return alertId;
    }

    public void setAlertId(String alertId) {
        this.alertId = alertId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getModuleNamespaceCode() {
        return moduleNamespaceCode;
    }

    public void setModuleNamespaceCode(String moduleNamespaceCode) {
        this.moduleNamespaceCode = moduleNamespaceCode;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getAlert() {
        return alert;
    }

    public void setAlert(String alert) {
        this.alert = alert;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active;
    }

	public Long getAlertTypeId() {
		return alertTypeId;
	}

	public void setAlertTypeId(Long alertTypeId) {
		this.alertTypeId = alertTypeId;
	}
}

@@ -600,159 +600,8 @@
 %0D%0A%0D%0A
-   %09@Column(name = %22MODULE_NMSPC_CD%22)%0D%0A    private String moduleNamespaceCode;%0D%0A%0D%0A   %09@Column(name = %22MODULE_NAME%22)%0D%0A    private String moduleName;%0D%0A%0D%0A
    %09
@@ -1177,410 +1177,8 @@
 %0D%0A%0D%0A
-    public String getModuleNamespaceCode() %7B%0D%0A        return moduleNamespaceCode;%0D%0A    %7D%0D%0A%0D%0A    public void setModuleNamespaceCode(String moduleNamespaceCode) %7B%0D%0A        this.moduleNamespaceCode = moduleNamespaceCode;%0D%0A    %7D%0D%0A%0D%0A    public String getModuleName() %7B%0D%0A        return moduleName;%0D%0A    %7D%0D%0A%0D%0A    public void setModuleName(String moduleName) %7B%0D%0A        this.moduleName = moduleName;%0D%0A    %7D%0D%0A%0D%0A
     

Remove module and set reference in alert type