package com.flightfeather.uav.domain.entity;
|
|
import java.util.Date;
|
import javax.persistence.*;
|
|
@Table(name = "grid_group")
|
public class GridGroup {
|
@Id
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
private Integer id;
|
|
/**
|
* 网格名称
|
*/
|
private String name;
|
|
@Column(name = "province_code")
|
private String provinceCode;
|
|
@Column(name = "province_name")
|
private String provinceName;
|
|
@Column(name = "city_code")
|
private String cityCode;
|
|
@Column(name = "city_name")
|
private String cityName;
|
|
@Column(name = "district_code")
|
private String districtCode;
|
|
@Column(name = "district_name")
|
private String districtName;
|
|
@Column(name = "town_code")
|
private String townCode;
|
|
@Column(name = "town_name")
|
private String townName;
|
|
@Column(name = "create_time")
|
private Date createTime;
|
|
/**
|
* 网格边长(单位:米)
|
*/
|
private Double length;
|
|
/**
|
* 网格类型,origin:原始网格;sub:子网格(细分网格)
|
*/
|
private String type;
|
|
/**
|
* 当网格类型是Sub(子网格)时,所属父网格组的id
|
*/
|
@Column(name = "father_group_id")
|
private Integer fatherGroupId;
|
|
/**
|
* 最大横坐标
|
*/
|
@Column(name = "max_xaxis")
|
private Integer maxXaxis;
|
|
/**
|
* 最大纵坐标
|
*/
|
@Column(name = "max_yaxis")
|
private Integer maxYaxis;
|
|
/**
|
* @return id
|
*/
|
public Integer getId() {
|
return id;
|
}
|
|
/**
|
* @param id
|
*/
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
/**
|
* 获取网格名称
|
*
|
* @return name - 网格名称
|
*/
|
public String getName() {
|
return name;
|
}
|
|
/**
|
* 设置网格名称
|
*
|
* @param name 网格名称
|
*/
|
public void setName(String name) {
|
this.name = name == null ? null : name.trim();
|
}
|
|
/**
|
* @return province_code
|
*/
|
public String getProvinceCode() {
|
return provinceCode;
|
}
|
|
/**
|
* @param provinceCode
|
*/
|
public void setProvinceCode(String provinceCode) {
|
this.provinceCode = provinceCode == null ? null : provinceCode.trim();
|
}
|
|
/**
|
* @return province_name
|
*/
|
public String getProvinceName() {
|
return provinceName;
|
}
|
|
/**
|
* @param provinceName
|
*/
|
public void setProvinceName(String provinceName) {
|
this.provinceName = provinceName == null ? null : provinceName.trim();
|
}
|
|
/**
|
* @return city_code
|
*/
|
public String getCityCode() {
|
return cityCode;
|
}
|
|
/**
|
* @param cityCode
|
*/
|
public void setCityCode(String cityCode) {
|
this.cityCode = cityCode == null ? null : cityCode.trim();
|
}
|
|
/**
|
* @return city_name
|
*/
|
public String getCityName() {
|
return cityName;
|
}
|
|
/**
|
* @param cityName
|
*/
|
public void setCityName(String cityName) {
|
this.cityName = cityName == null ? null : cityName.trim();
|
}
|
|
/**
|
* @return district_code
|
*/
|
public String getDistrictCode() {
|
return districtCode;
|
}
|
|
/**
|
* @param districtCode
|
*/
|
public void setDistrictCode(String districtCode) {
|
this.districtCode = districtCode == null ? null : districtCode.trim();
|
}
|
|
/**
|
* @return district_name
|
*/
|
public String getDistrictName() {
|
return districtName;
|
}
|
|
/**
|
* @param districtName
|
*/
|
public void setDistrictName(String districtName) {
|
this.districtName = districtName == null ? null : districtName.trim();
|
}
|
|
/**
|
* @return town_code
|
*/
|
public String getTownCode() {
|
return townCode;
|
}
|
|
/**
|
* @param townCode
|
*/
|
public void setTownCode(String townCode) {
|
this.townCode = townCode == null ? null : townCode.trim();
|
}
|
|
/**
|
* @return town_name
|
*/
|
public String getTownName() {
|
return townName;
|
}
|
|
/**
|
* @param townName
|
*/
|
public void setTownName(String townName) {
|
this.townName = townName == null ? null : townName.trim();
|
}
|
|
/**
|
* @return create_time
|
*/
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
/**
|
* @param createTime
|
*/
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
/**
|
* 获取网格边长(单位:米)
|
*
|
* @return length - 网格边长(单位:米)
|
*/
|
public Double getLength() {
|
return length;
|
}
|
|
/**
|
* 设置网格边长(单位:米)
|
*
|
* @param length 网格边长(单位:米)
|
*/
|
public void setLength(Double length) {
|
this.length = length;
|
}
|
|
/**
|
* 获取网格类型,origin:原始网格;sub:子网格(细分网格)
|
*
|
* @return type - 网格类型,origin:原始网格;sub:子网格(细分网格)
|
*/
|
public String getType() {
|
return type;
|
}
|
|
/**
|
* 设置网格类型,origin:原始网格;sub:子网格(细分网格)
|
*
|
* @param type 网格类型,origin:原始网格;sub:子网格(细分网格)
|
*/
|
public void setType(String type) {
|
this.type = type == null ? null : type.trim();
|
}
|
|
/**
|
* 获取当网格类型是Sub(子网格)时,所属父网格组的id
|
*
|
* @return father_group_id - 当网格类型是Sub(子网格)时,所属父网格组的id
|
*/
|
public Integer getFatherGroupId() {
|
return fatherGroupId;
|
}
|
|
/**
|
* 设置当网格类型是Sub(子网格)时,所属父网格组的id
|
*
|
* @param fatherGroupId 当网格类型是Sub(子网格)时,所属父网格组的id
|
*/
|
public void setFatherGroupId(Integer fatherGroupId) {
|
this.fatherGroupId = fatherGroupId;
|
}
|
|
/**
|
* 获取最大横坐标
|
*
|
* @return max_xaxis - 最大横坐标
|
*/
|
public Integer getMaxXaxis() {
|
return maxXaxis;
|
}
|
|
/**
|
* 设置最大横坐标
|
*
|
* @param maxXaxis 最大横坐标
|
*/
|
public void setMaxXaxis(Integer maxXaxis) {
|
this.maxXaxis = maxXaxis;
|
}
|
|
/**
|
* 获取最大纵坐标
|
*
|
* @return max_yaxis - 最大纵坐标
|
*/
|
public Integer getMaxYaxis() {
|
return maxYaxis;
|
}
|
|
/**
|
* 设置最大纵坐标
|
*
|
* @param maxYaxis 最大纵坐标
|
*/
|
public void setMaxYaxis(Integer maxYaxis) {
|
this.maxYaxis = maxYaxis;
|
}
|
}
|