package com.palmnest.model.estateserve;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * app版本管理
 *
 * @author longmeizhen
 */
@Entity
@Table(name = "tb_app_useversion")
public class AppUseVersion implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 9051317208109884744L;

	private Long   id;
	private String useCode;//应用编码
	private String useName;//应用名称
	private String versionCode;//版本号
	private String usePlatform;//应用平台 1安卓2ios
	private String versionName;//版本名称
	private String customer;//所属客户
	private String strMessage;//更新内容
	private String status;//状态1可用2不可用
	private String updateURL;//更新链接
	private String creator;//创建人
	private Date   createTime;//发布时间
	private String updateFlag;//是否强制更新
	private String remark;//备注
	private String minimumVersion;//支持最低版本(默认为该版本)
	private String isLast;//最新记录1为是最新的2为不是最新的

	private Long clientId;//所属客户数据字典id
	private Long useCodeId;//应用编码数据字典id

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return id;
	}

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

	public String getUseCode() {
		return useCode;
	}

	public void setUseCode(String useCode) {
		this.useCode = useCode;
	}

	public String getUseName() {
		return useName;
	}

	public void setUseName(String useName) {
		this.useName = useName;
	}

	public String getVersionCode() {
		return versionCode;
	}

	public void setVersionCode(String versionCode) {
		this.versionCode = versionCode;
	}

	public String getUsePlatform() {
		return usePlatform;
	}

	public void setUsePlatform(String usePlatform) {
		this.usePlatform = usePlatform;
	}

	public String getVersionName() {
		return versionName;
	}

	public void setVersionName(String versionName) {
		this.versionName = versionName;
	}

	public String getCustomer() {
		return customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}

	public String getStrMessage() {
		return strMessage;
	}

	public void setStrMessage(String strMessage) {
		this.strMessage = strMessage;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getUpdateURL() {
		return updateURL;
	}

	public void setUpdateURL(String updateURL) {
		this.updateURL = updateURL;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return createTime;
	}

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

	public String getUpdateFlag() {
		return updateFlag;
	}

	public void setUpdateFlag(String updateFlag) {
		this.updateFlag = updateFlag;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getMinimumVersion() {
		return minimumVersion;
	}

	public void setMinimumVersion(String minimumVersion) {
		this.minimumVersion = minimumVersion;
	}

	public String getIsLast() {
		return isLast;
	}

	public void setIsLast(String isLast) {
		this.isLast = isLast;
	}

	public Long getClientId() {
		return clientId;
	}

	public void setClientId(Long clientId) {
		this.clientId = clientId;
	}

	public Long getUseCodeId() {
		return useCodeId;
	}

	public void setUseCodeId(Long useCodeId) {
		this.useCodeId = useCodeId;
	}

}
