| | |
| | | package com.moral.entity; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Id; |
| | | |
| | | @Data |
| | | public class City { |
| | | @Id |
| | | private Integer cityCode; |
| | | |
| | | private String cityName; |
| | | |
| | | private Integer provinceCode; |
| | | |
| | | public Integer getCityCode() { |
| | | return cityCode; |
| | | } |
| | | |
| | | public void setCityCode(Integer cityCode) { |
| | | this.cityCode = cityCode; |
| | | } |
| | | |
| | | public String getCityName() { |
| | | return cityName; |
| | | } |
| | | |
| | | public void setCityName(String cityName) { |
| | | this.cityName = cityName == null ? null : cityName.trim(); |
| | | } |
| | | |
| | | public Integer getProvinceCode() { |
| | | return provinceCode; |
| | | } |
| | | |
| | | public void setProvinceCode(Integer provinceCode) { |
| | | this.provinceCode = provinceCode; |
| | | } |
| | | } |