2cf42f97c7283887cdffd676bfd3dfd62388b51e.svn-base 2.15 KB
/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sumdata.entity.datatable;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * s_reg_bus_sjmainEntity
 * @author xuyg
 * @version 2017-03-08
 */
public class SRegBusSjmain extends DataEntity<SRegBusSjmain> {
	
	private static final long serialVersionUID = 1L;
	private String sareaCode;		// s_area_code
	private String ywh;		// ywh
	private String ysdm;		// ysdm
	private Date sjsj;		// sjsj
	private String bz;		// bz
	private List<SRegBusSjchild> sRegBusSjchildList = Lists.newArrayList();		// 子表列表
	private String qxid;		// qxid
	public String getQxid() {
		return qxid;
	}

	public void setQxid(String qxid) {
		this.qxid = qxid;
	}

	public SRegBusSjmain() {
		super();
	}

	public SRegBusSjmain(String id){
		super(id);
	}

	@Length(min=1, max=6, message="s_area_code长度必须介于 1 和 6 之间")
	public String getSareaCode() {
		return sareaCode;
	}

	public void setSareaCode(String sareaCode) {
		this.sareaCode = sareaCode;
	}
	
	@Length(min=0, max=20, message="ywh长度必须介于 0 和 20 之间")
	public String getYwh() {
		return ywh;
	}

	public void setYwh(String ywh) {
		this.ywh = ywh;
	}
	
	@Length(min=0, max=10, message="ysdm长度必须介于 0 和 10 之间")
	public String getYsdm() {
		return ysdm;
	}

	public void setYsdm(String ysdm) {
		this.ysdm = ysdm;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getSjsj() {
		return sjsj;
	}

	public void setSjsj(Date sjsj) {
		this.sjsj = sjsj;
	}
	
	@Length(min=0, max=300, message="bz长度必须介于 0 和 300 之间")
	public String getBz() {
		return bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}
	
	public List<SRegBusSjchild> getSRegBusSjchildList() {
		return sRegBusSjchildList;
	}

	public void setSRegBusSjchildList(List<SRegBusSjchild> sRegBusSjchildList) {
		this.sRegBusSjchildList = sRegBusSjchildList;
	}
}