/**
 * Company Name : 中贸促信息技术有限责任公司
 * Project Name:memberManageSys
 * File Name:UserEmail.java
 * Package Name:ccpit.base.user
 * Date:2015年11月23日上午9:29:12
 * Copyright (c) 2015, dingwei@ccpit.org All Rights Reserved.
 *
*/

package org.ccpit.base.user;

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

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;

import org.hibernate.annotations.Where;

/**
 * ClassName:UserEmail <br/>
 * Function: 用户邮箱信息. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2015年11月23日 上午9:29:12 <br/>
 * @author   dingwei
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
@Entity
@Where(clause="whetherDelete='false'")
public class UserEmail implements Serializable{
	private static final long serialVersionUID = 1L;
	private long id;
	/**
	 * 服务协议
	 */
	private String serverProtocol;
	/**
	 * 服务器地址
	 */
	private String serverHost;
	/**
	 * 服务器端口
	 */
	private String serverPort;
	/**
	 * 邮箱账号
	 */
	private String emailCount;
	/**
	 * 登录密码
	 */
	private String emailPassword;
	/**
	 * 是否删除
	 */
	private boolean whetherDelete;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 创建人
	 */
	private User creator;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 修改人
	 */
	private User modifyBy;
	/**
	 * 修改时间
	 */
	private Date modifyTime;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public long getId() {
		return id;
	}

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

	public String getServerProtocol() {
		return serverProtocol;
	}

	public void setServerProtocol(String serverProtocol) {
		this.serverProtocol = serverProtocol;
	}

	public String getServerHost() {
		return serverHost;
	}

	public void setServerHost(String serverHost) {
		this.serverHost = serverHost;
	}

	public String getServerPort() {
		return serverPort;
	}

	public void setServerPort(String serverPort) {
		this.serverPort = serverPort;
	}

	public String getEmailCount() {
		return emailCount;
	}

	public void setEmailCount(String emailCount) {
		this.emailCount = emailCount;
	}

	public String getEmailPassword() {
		return emailPassword;
	}

	public void setEmailPassword(String emailPassword) {
		this.emailPassword = emailPassword;
	}

	public boolean isWhetherDelete() {
		return whetherDelete;
	}

	public void setWhetherDelete(boolean whetherDelete) {
		this.whetherDelete = whetherDelete;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	@OneToOne
	public User getCreator() {
		return creator;
	}

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

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@OneToOne
	public User getModifyBy() {
		return modifyBy;
	}

	public void setModifyBy(User modifyBy) {
		this.modifyBy = modifyBy;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

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

