Add Attractions

p96aetpbr 5 months ago
parent 30cd6a0256
commit f8212c36d0

@ -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; }
}
Loading…
Cancel
Save