package com.palmnest.model.estateserve;

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;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ScReceivevoice entity.
 *
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sc_receivevoice")
public class WxReceivevoice implements java.io.Serializable {

	// Fields

	private Integer receiveVoiceId;
	private String  developId;
	private String  openId;
	private Date    createTime;
	private String  mediaId;
	private String  format;
	private Integer msgId;

	// Constructors

	/**
	 * default constructor
	 */
	public WxReceivevoice() {
	}

	/**
	 * minimal constructor
	 */
	public WxReceivevoice(Integer receiveVoiceId) {
		this.receiveVoiceId = receiveVoiceId;
	}

	/**
	 * full constructor
	 */
	public WxReceivevoice(Integer receiveVoiceId, String developId,
						  String openId, Date createTime, String mediaId, String format,
						  Integer msgId) {
		this.receiveVoiceId = receiveVoiceId;
		this.developId = developId;
		this.openId = openId;
		this.createTime = createTime;
		this.mediaId = mediaId;
		this.format = format;
		this.msgId = msgId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ReceiveVoiceId", unique = true, nullable = false)
	public Integer getReceiveVoiceId() {
		return this.receiveVoiceId;
	}

	public void setReceiveVoiceId(Integer receiveVoiceId) {
		this.receiveVoiceId = receiveVoiceId;
	}

	@Column(name = "DevelopId")
	public String getDevelopId() {
		return this.developId;
	}

	public void setDevelopId(String developId) {
		this.developId = developId;
	}

	@Column(name = "OpenId")
	public String getOpenId() {
		return this.openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CreateTime", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

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

	@Column(name = "MediaId", length = 19)
	public String getMediaId() {
		return this.mediaId;
	}

	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}

	@Column(name = "Format", length = 45)
	public String getFormat() {
		return this.format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	@Column(name = "MsgId")
	public Integer getMsgId() {
		return this.msgId;
	}

	public void setMsgId(Integer msgId) {
		this.msgId = msgId;
	}

}