package com.vverp.entity; import cn.afterturn.easypoi.excel.annotation.ExcelTarget; import com.fasterxml.jackson.annotation.JsonIgnore; import com.vverp.annotation.Module; import javax.persistence.*; /** * Entity - 收货/提货地址 * * @author dealsky * @date 2020/4/28 1:22 下午 */ @Entity @Table(name = "t_cargo_address") @SequenceGenerator(name = "sequenceGenerator", sequenceName = "seq_cargo_address") @Module(generate = false) @ExcelTarget("cargoAddress") public class CargoAddress extends BaseEntity { /** * 省id */ private Long provinceId; /** * 市id */ private Long cityId; /** * 区/县id */ private Long countyId; /** * 详细地址 */ private String address; /** * 供应商 */ private Supplier supplier; public Long getProvinceId() { return provinceId; } public void setProvinceId(Long provinceId) { this.provinceId = provinceId; } public Long getCityId() { return cityId; } public void setCityId(Long cityId) { this.cityId = cityId; } public Long getCountyId() { return countyId; } public void setCountyId(Long countyId) { this.countyId = countyId; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } @JsonIgnore @ManyToOne(fetch = FetchType.LAZY) public Supplier getSupplier() { return supplier; } public void setSupplier(Supplier supplier) { this.supplier = supplier; } }