From 3b50aa4a23bd3ccb2bf71109b84dea65bd9ffc07 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Wed, 06 May 2020 11:02:25 +0800 Subject: [PATCH] update --- src/main/java/com/moral/entity/Organization.java | 24 +++--------------------- 1 files changed, 3 insertions(+), 21 deletions(-) diff --git a/src/main/java/com/moral/entity/Organization.java b/src/main/java/com/moral/entity/Organization.java index e727199..eb237bb 100644 --- a/src/main/java/com/moral/entity/Organization.java +++ b/src/main/java/com/moral/entity/Organization.java @@ -3,6 +3,8 @@ import java.util.Date; import java.util.Map; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Transient; @@ -15,6 +17,7 @@ * @mbggenerated Thu Dec 07 15:18:16 CST 2017 */ @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; /** @@ -90,27 +93,6 @@ private String description; private Long townCode; private Long villageCode; - - public Integer getProvinceCode() { - return provinceCode==null?0:provinceCode; - } - - public Integer getCityCode() { - return cityCode==null?0:cityCode; - } - - public Integer getAreaCode() { - return areaCode==null?0:areaCode; - } - - public Long getTownCode() { - return townCode==null?0:townCode; - } - - public Long getVillageCode() { - return villageCode==null?0:villageCode; - } - @Transient private Integer parentId; @Transient -- Gitblit v1.8.0