| | |
| | | @Table(name = "grid_cell") |
| | | public class GridCell { |
| | | @Id |
| | | @GeneratedValue(strategy = GenerationType.IDENTITY) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 网格索引 |
| | | */ |
| | | @Column(name = "cell_index") |
| | | private Integer cellIndex; |
| | | |
| | | /** |
| | | * 所属网格分组id |
| | | */ |
| | | @Column(name = "group_id") |
| | | private Integer groupId; |
| | | |
| | | /** |
| | | * 所属上级网格的索引id,如果没有则为null |
| | | */ |
| | | @Column(name = "father_cell_index") |
| | | private Integer fatherCellIndex; |
| | | |
| | | /** |
| | | * 经度 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取网格索引 |
| | | * |
| | | * @return cell_index - 网格索引 |
| | | */ |
| | | public Integer getCellIndex() { |
| | | return cellIndex; |
| | | } |
| | | |
| | | /** |
| | | * 设置网格索引 |
| | | * |
| | | * @param cellIndex 网格索引 |
| | | */ |
| | | public void setCellIndex(Integer cellIndex) { |
| | | this.cellIndex = cellIndex; |
| | | } |
| | | |
| | | /** |
| | | * 获取所属网格分组id |
| | | * |
| | | * @return group_id - 所属网格分组id |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取所属上级网格的索引id,如果没有则为null |
| | | * |
| | | * @return father_cell_index - 所属上级网格的索引id,如果没有则为null |
| | | */ |
| | | public Integer getFatherCellIndex() { |
| | | return fatherCellIndex; |
| | | } |
| | | |
| | | /** |
| | | * 设置所属上级网格的索引id,如果没有则为null |
| | | * |
| | | * @param fatherCellIndex 所属上级网格的索引id,如果没有则为null |
| | | */ |
| | | public void setFatherCellIndex(Integer fatherCellIndex) { |
| | | this.fatherCellIndex = fatherCellIndex; |
| | | } |
| | | |
| | | /** |
| | | * 获取经度 |
| | | * |
| | | * @return longitude - 经度 |