package com.jiuqi.lbsinterface.bean; import com.jqmobile.core.orm.DBColumn; import com.jqmobile.core.orm.DBTable; @DBTable(name = "T_ADMIN_AREA", keys = { "UNIQUE KEY AREA_INDEX_1 (code)", "KEY AREA_INDEX_2 (pCode)","KEY idx_t_admin_area_name (name)" }, version = 8) public class AdminAreaBean extends Bean { @DBColumn(comment = "行政区划编号") private long code; @DBColumn(comment = "行政区划直属上级编号") private long pCode; @DBColumn(length =50, comment = "名称") private String name; @DBColumn(comment = "省编号,2") private int provinceCode; @DBColumn(comment = "市编号,2") private int cityCode; @DBColumn(comment = "县编号,2") private int countryCode; @DBColumn(comment = "乡镇编号,3") private int townCode; @DBColumn(comment = "村编号,3") private int villageCode; @DBColumn(comment = "经度", type = DBColumn.TypePoint) private double longitude; @DBColumn(comment = "纬度", type = DBColumn.TypePoint) private double latitude; @DBColumn(comment = "行政区划_简称,比如安徽:ah") private String adminAreaAd; // public AdminAreaBean() { } // public long getCode() { return code; } public void setCode(long code) { this.code = code; } public long getpCode() { return pCode; } public void setpCode(long pCode) { this.pCode = pCode; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getProvinceCode() { return provinceCode; } public void setProvinceCode(int provinceCode) { this.provinceCode = provinceCode; } public int getCityCode() { return cityCode; } public void setCityCode(int cityCode) { this.cityCode = cityCode; } public int getCountryCode() { return countryCode; } public void setCountryCode(int countryCode) { this.countryCode = countryCode; } public int getTownCode() { return townCode; } public void setTownCode(int townCode) { this.townCode = townCode; } public int getVillageCode() { return villageCode; } public void setVillageCode(int villageCode) { this.villageCode = villageCode; } public double getLongitude() { return longitude; } public void setLongitude(double longitude) { this.longitude = longitude; } public double getLatitude() { return latitude; } public void setLatitude(double latitude) { this.latitude = latitude; } public String getAdminAreaAd() { return adminAreaAd; } public void setAdminAreaAd(String adminAreaAd) { this.adminAreaAd = adminAreaAd; } }