bc2f25ff8ee1ca37ade4a9b1e598d469e3f5f1ed.svn-base 3.39 KB
/**
 * Copyright © 2015-2018 ODM All rights reserved.
 */
package com.thinkgem.jeesite.modules.reg.entity.base;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.xml.JaxbDateAdapter;
/**
 * 宗地基本信息变化表单维护Entity
 * @author xuyg
 * @version 2015-10-20
 */
@XmlRootElement(name="KTF_ZDBHQK")
public class RegBaseZdbhqk extends DataEntity<RegBaseZdbhqk> {
	//QXDM="区县代码" xml?
	private static final long serialVersionUID = 1L;
	private String zddm;		// 宗地代码
	private String bhyy;		// 变化原因
	private String bhnr;		// 变化内容
	private Date djsj;		// 登记时间
	private String dbr;		// 登簿人
	private String fj;		// 附记
	private String zdid;		// 宗地基本信息编号
	private Date beginDjsj;		// 开始 登记时间
	private Date endDjsj;		// 结束 登记时间
	private String ywh; //业务号 
	private String oldzdid;		// [变化前的宗地]
	
	public RegBaseZdbhqk() {
		super();
	}

	public RegBaseZdbhqk(String id){
		super(id);
	}
    
	@XmlAttribute(name="ZDDM")
	@Length(min=1, max=19, message="宗地代码长度必须介于 1 和 19 之间")
	public String getZddm() {
		return zddm;
	}

	public void setZddm(String zddm) {
		this.zddm = zddm;
	}
	
	@XmlAttribute(name="BHYY")
	@Length(min=1, max=300, message="变化原因长度必须介于 1 和 300 之间")
	public String getBhyy() {
		return bhyy;
	}

	public void setBhyy(String bhyy) {
		this.bhyy = bhyy;
	}
	
	@XmlAttribute(name="BHNR")
	@Length(min=1, max=500, message="变化内容长度必须介于 1 和 500 之间")
	public String getBhnr() {
		return bhnr;
	}

	public void setBhnr(String bhnr) {
		this.bhnr = bhnr;
	}
	
	@XmlAttribute(name="DJSJ")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="登记时间不能为空")
	public Date getDjsj() {
		return djsj;
	}

	public void setDjsj(Date djsj) {
		this.djsj = djsj;
	}
	
	@XmlAttribute(name="DBR")
	@Length(min=1, max=50, message="登簿人长度必须介于 1 和 50 之间")
	public String getDbr() {
		return dbr;
	}

	public void setDbr(String dbr) {
		this.dbr = dbr;
	}
	
	@XmlAttribute(name="FJ")
	@Length(min=0, max=300, message="附记长度必须介于 0 和 300 之间")
	public String getFj() {
		return fj;
	}

	public void setFj(String fj) {
		this.fj = fj;
	}
	
	@XmlTransient
	@Length(min=1, max=64, message="宗地基本信息编号长度必须介于 1 和 64 之间")
	public String getZdid() {
		return zdid;
	}

	public void setZdid(String zdid) {
		this.zdid = zdid;
	}
	
	@XmlTransient
	public Date getBeginDjsj() {
		return beginDjsj;
	}

	public void setBeginDjsj(Date beginDjsj) {
		this.beginDjsj = beginDjsj;
	}
	
	@XmlTransient
	public Date getEndDjsj() {
		return endDjsj;
	}

	public void setEndDjsj(Date endDjsj) {
		this.endDjsj = endDjsj;
	}

	@XmlTransient
	public String getYwh() {
		return ywh;
	}

	public void setYwh(String ywh) {
		this.ywh = ywh;
	}

	@XmlTransient
	public String getOldzdid() {
		return oldzdid;
	}

	public void setOldzdid(String oldzdid) {
		this.oldzdid = oldzdid;
	}
}