CrmSourcefrom.java 1.9 KB
package com.espeed.webmail.pojo;
 
import java.io.Serializable;

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

/**
 * 程序名称:    	EspeedMail_时速邮箱
 * 程序版本:    	V1.0
 * 作    者:    	深圳市科飞时速网络技术有限公司(0755-88843776)
 * 版权所有:    	深圳市科飞时速网络技术有限公司
 * 技术支持:    	Tech@21gmail.com
 * 单元名称:     客户来源实体
 * 开始时间:    	2015.06.02
 * 程 序 员:    	谢勇
 * 最后修改:    2015.05.25
 * 备    注:		二次修改
 */
@Entity
@Table(name="crm_sourcefrom")
public class CrmSourcefrom implements Serializable{
	private static final long serialVersionUID = 1L;
	private int id;//id
   	private String name;//来原名称
   	private int company_id;//企业id
   	private Integer owner_type;//参数级别:0企业级,1个人级
	private Integer owner_id;//owner_type=0是企业id,owner_type=1是用户id
	private int counts;//客户数量
   	@Id
   	@GeneratedValue(strategy=GenerationType.AUTO)
   	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getCompany_id() {
		return company_id;
	}
	public void setCompany_id(int companyId) {
		company_id = companyId;
	}
	public Integer getOwner_type() {
		return owner_type;
	}
	public void setOwner_type(Integer owner_type) {
		this.owner_type = owner_type;
	}
	public Integer getOwner_id() {
		return owner_id;
	}
	public void setOwner_id(Integer owner_id) {
		this.owner_id = owner_id;
	}
	@Transient
	public int getCounts() {
		return counts;
	}
	public void setCounts(int counts) {
		this.counts = counts;
	}
}