From 2a1ad23e05d9ab54f22150da2a59e151be5c15c1 Mon Sep 17 00:00:00 2001 From: p96aetpbr <2691443110@qq.com> Date: Wed, 26 Jun 2024 08:31:37 +0800 Subject: [PATCH] Add Attractions.java --- Attractions.java | 57 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Attractions.java diff --git a/Attractions.java b/Attractions.java new file mode 100644 index 0000000..d87519c --- /dev/null +++ b/Attractions.java @@ -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; } +}