From f8212c36d0fcf5244fa4a5fe23d7990b3bd03355 Mon Sep 17 00:00:00 2001 From: p96aetpbr <2691443110@qq.com> Date: Wed, 26 Jun 2024 08:12:59 +0800 Subject: [PATCH] Add Attractions --- Attractions | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Attractions diff --git a/Attractions b/Attractions new file mode 100644 index 0000000..d87519c --- /dev/null +++ b/Attractions @@ -0,0 +1,57 @@ +package com.power.travel.model; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import java.util.Date; +//这段代码是一个Java实体类,用于表示旅游景点(Attractions)的信息。 +@Entity +@Table(name = "attractions") +public class Attractions { + + @Id + @Column(name = "id") + private String id; + @Column(name = "image") + private String image; + @Column(name = "attractionsName") + private String name; + @Column(name = "attractionsAddress") + private String address; + @Column(name = "attractionsDescribe") + private String describe; + @Column(name = "attractionsStatus") + private Integer status; + @Column(name = "createDate") + private Date createDate; + + + public String getId() { return id; } + + public void setId(String id) { this.id = id; } + + public String getImage() { return image; } + + public void setImage(String image) { this.image = image; } + + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + + public String getAddress() { return address; } + + public void setAddress(String address) { this.address = address; } + + public String getDescribe() { return describe; } + + public void setDescribe(String describe) { this.describe = describe; } + + public Integer getStatus() { return status; } + + public void setStatus(Integer status) { this.status = status; } + + public Date getCreateDate() { return createDate; } + + public void setCreateDate(Date createDate) { this.createDate = createDate; } +}