package com.reyun.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;

@Entity
public class Retention {

	private Long id;
	private Long account;
	private Long app;
	private String name;
	private String eventInfo;
	private String view;
	private String startDate;
	private String endDate;
	private int relativeTime;
	private String retentionType;

	private Long createAccount;
	private Date createTime = new Date();
	private Date modifyTime = new Date();
	private Long modifyAccount;
	private Boolean delFlag;

	private String cAccount;
	private String mAcoucnt;

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getAccount() {
		return account;
	}

	public void setAccount(Long account) {
		this.account = account;
	}

	public Long getApp() {
		return app;
	}

	public void setApp(Long app) {
		this.app = app;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEventInfo() {
		return eventInfo;
	}

	public void setEventInfo(String eventInfo) {
		this.eventInfo = eventInfo;
	}

	public Long getCreateAccount() {
		return createAccount;
	}

	public void setCreateAccount(Long createAccount) {
		this.createAccount = createAccount;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Long getModifyAccount() {
		return modifyAccount;
	}

	public void setModifyAccount(Long modifyAccount) {
		this.modifyAccount = modifyAccount;
	}

	public Boolean getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Boolean delFlag) {
		this.delFlag = delFlag;
	}

	@Transient
	@Column(name="cAccount" )
	public String getcAccount() {
		return cAccount;
	}

	public void setcAccount(String cAccount) {
		this.cAccount = cAccount;
	}

	@Transient
	public String getmAcoucnt() {
		return mAcoucnt;
	}

	public void setmAcoucnt(String mAcoucnt) {
		this.mAcoucnt = mAcoucnt;
	}

	public String getView() {
		return view;
	}

	public void setView(String view) {
		this.view = view;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public int getRelativeTime() {
		return relativeTime;
	}

	public void setRelativeTime(int relativeTime) {
		this.relativeTime = relativeTime;
	}

	public String getRetentionType() {
		return retentionType;
	}

	public void setRetentionType(String retentionType) {
		this.retentionType = retentionType;
	}
	
}
