package com.yihu.wlyy.entity.patient;

import java.sql.Timestamp;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * 签约家庭代码。
 */
@Entity
@Table(name = "wlyy_sign_family_code")
public class SignFamilyCode implements java.io.Serializable {
	private String id;
	private String orgCode;
	private String orgName;
	private Integer sequence;
	private Date modifyTime;
	private String year;

    public SignFamilyCode(){}

	public SignFamilyCode(Timestamp modifyTime) {
		this.modifyTime = modifyTime;
	}

	public SignFamilyCode(String orgCode, String orgName, Integer sequence,
                          Timestamp modifyTime) {
		this.orgCode = orgCode;
		this.orgName = orgName;
		this.sequence = sequence;
		this.modifyTime = modifyTime;
	}

	@GenericGenerator(name = "generator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
		return this.id;
	}

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

	@Column(name = "org_code", length = 50)
	public String getOrgCode() {
		return this.orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	@Column(name = "org_name", length = 200)
	public String getOrgName() {
		return this.orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	@Column(name = "sequence")
	public Integer getSequence() {
		return this.sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	@Column(name = "modify_time", length = 0)
	public Date getModifyTime() {
		return this.modifyTime;
	}

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

	@Column(name = "year" , length = 10)
	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}
}