parent
e6fbfa96ab
commit
04d6bc022d
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<litepal>
|
||||
<dbname value="flameking_weather"/>
|
||||
<version value="1"/>
|
||||
<list>
|
||||
<mapping class="com.casflawed.flameking.weather.db.Province"/>
|
||||
<mapping class="com.casflawed.flameking.weather.db.City"/>
|
||||
<mapping class="com.casflawed.flameking.weather.db.County"/>
|
||||
</list>
|
||||
</litepal>
|
||||
@ -0,0 +1,50 @@
|
||||
package com.casflawed.flameking.weather.db;
|
||||
|
||||
public class City extends LitePalSupport{
|
||||
private Integer id;
|
||||
private String cityName;
|
||||
private Integer cityCode;
|
||||
private Integer provinceId;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCityName() {
|
||||
return cityName;
|
||||
}
|
||||
|
||||
public void setCityName(String cityName) {
|
||||
this.cityName = cityName;
|
||||
}
|
||||
|
||||
public Integer getCityCode() {
|
||||
return cityCode;
|
||||
}
|
||||
|
||||
public void setCityCode(Integer cityCode) {
|
||||
this.cityCode = cityCode;
|
||||
}
|
||||
|
||||
public Integer getProvinceId() {
|
||||
return provinceId;
|
||||
}
|
||||
|
||||
public void setProvinceId(Integer provinceId) {
|
||||
this.provinceId = provinceId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "City{" +
|
||||
"id=" + id +
|
||||
", cityName='" + cityName + '\'' +
|
||||
", cityCode=" + cityCode +
|
||||
", provinceId=" + provinceId +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package com.casflawed.flameking.weather.db;
|
||||
|
||||
public class County extends LitePalSupport{
|
||||
private Integer id;
|
||||
private String countyName;
|
||||
private Integer weatherId;
|
||||
private Integer cityId;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCountyName() {
|
||||
return countyName;
|
||||
}
|
||||
|
||||
public void setCountyName(String countyName) {
|
||||
this.countyName = countyName;
|
||||
}
|
||||
|
||||
public Integer getWeatherId() {
|
||||
return weatherId;
|
||||
}
|
||||
|
||||
public void setWeatherId(Integer weatherId) {
|
||||
this.weatherId = weatherId;
|
||||
}
|
||||
|
||||
public Integer getCityId() {
|
||||
return cityId;
|
||||
}
|
||||
|
||||
public void setCityId(Integer cityId) {
|
||||
this.cityId = cityId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "County{" +
|
||||
"id=" + id +
|
||||
", countyName='" + countyName + '\'' +
|
||||
", weatherId=" + weatherId +
|
||||
", cityId=" + cityId +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.casflawed.flameking.weather.db;
|
||||
|
||||
public class Province extends LitePalSupport{
|
||||
private Integer id;
|
||||
private Integer provinceCode;
|
||||
private String provinceName;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getProvinceCode() {
|
||||
return provinceCode;
|
||||
}
|
||||
|
||||
public void setProvinceCode(Integer provinceCode) {
|
||||
this.provinceCode = provinceCode;
|
||||
}
|
||||
|
||||
public String getProvinceName() {
|
||||
return provinceName;
|
||||
}
|
||||
|
||||
public void setProvinceName(String provinceName) {
|
||||
this.provinceName = provinceName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Province{" +
|
||||
"id=" + id +
|
||||
", provinceCode=" + provinceCode +
|
||||
", provinceName='" + provinceName + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue