44c11e8c7b01200f0ac643b1d07e892344233a29.svn-base 1.82 KB
/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.reg.entity.base;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 带有坐标管理的测绘信息管理Entity
 * @author xuyg
 * @version 2016-01-01
 */
public class RegBaseZbinfo11 extends DataEntity<RegBaseZbinfo11> {
	
	private static final long serialVersionUID = 1L;
	private RegBaseChxx11 mainId;		// 主表id 父类
	private String zbdmc;		// 坐标点名称
	private String zbx;		// X坐标值
	private String zby;		// Y坐标值
	private Integer sort;	// 排序
	
	
	public RegBaseZbinfo11() {
		super();
	}

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

	public RegBaseZbinfo11(RegBaseChxx11 mainId){
		this.mainId = mainId;
	} 


	//@ManyToOne
	//@JoinColumn(name="mainId")
	@JsonIgnore
	@Length(min=0, max=64, message="主表id长度必须介于 0 和 64 之间")
	public RegBaseChxx11 getMainId() {
		return mainId;
	}

	public void setMainId(RegBaseChxx11 mainId) {
		this.mainId = mainId;
	} 

	@Length(min=0, max=100, message="坐标点名称长度必须介于 0 和 100 之间")
	public String getZbdmc() {
		return zbdmc;
	}

	public void setZbdmc(String zbdmc) {
		this.zbdmc = zbdmc;
	}
	
	@Length(min=0, max=50, message="X坐标值长度必须介于 0 和 50 之间")
	public String getZbx() {
		return zbx;
	}

	public void setZbx(String zbx) {
		this.zbx = zbx;
	}
	
	@Length(min=0, max=50, message="Y坐标值长度必须介于 0 和 50 之间")
	public String getZby() {
		return zby;
	}

	public void setZby(String zby) {
		this.zby = zby;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
}