添加了植被类型实体类
This commit is contained in:
parent
b34d60ad6f
commit
71a1392ccc
56
src/main/java/com/xkrs/model/entity/LandEntity.java
Normal file
56
src/main/java/com/xkrs/model/entity/LandEntity.java
Normal file
@ -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 + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user