From 71a1392ccc00f81512b0cb1c09368eba6e79b2bf Mon Sep 17 00:00:00 2001 From: "DESKTOP-G8BCEP0\\HP" <2037158277@qq.com> Date: Tue, 20 Jul 2021 11:02:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E6=A4=8D=E8=A2=AB?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AE=9E=E4=BD=93=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xkrs/model/entity/LandEntity.java | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/main/java/com/xkrs/model/entity/LandEntity.java diff --git a/src/main/java/com/xkrs/model/entity/LandEntity.java b/src/main/java/com/xkrs/model/entity/LandEntity.java new file mode 100644 index 0000000..3ca5d5b --- /dev/null +++ b/src/main/java/com/xkrs/model/entity/LandEntity.java @@ -0,0 +1,56 @@ +package com.xkrs.model.entity; + +import javax.persistence.*; + +/** + * @author HP + */ +@Entity +@Table(name = "land") +public class LandEntity { + /** + * 主键id + */ + @Id + @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "city_seq_gen") + @SequenceGenerator(name = "city_seq_gen", sequenceName = "city_id_seq",allocationSize = 1) + private Integer id; + + /** + * 植被名称 + */ + @Column(length = 32, columnDefinition = "varchar(32)") + private String landName; + + public LandEntity() { + } + + public LandEntity(Integer id, String landName) { + this.id = id; + this.landName = landName; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getLandName() { + return landName; + } + + public void setLandName(String landName) { + this.landName = landName; + } + + @Override + public String toString() { + return "LandEntity{" + + "id=" + id + + ", landName='" + landName + '\'' + + '}'; + } +}