You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xian/Attractions

58 lines
1.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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; }
}