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.
68 lines
1.2 KiB
68 lines
1.2 KiB
package com.power.travel.model;
|
|
|
|
import javax.persistence.*;
|
|
import java.util.Date;
|
|
|
|
@Entity
|
|
@Table(name = "user_hotel")
|
|
public class UserHotel {
|
|
|
|
@Id
|
|
@Column(name = "id")
|
|
private String id;
|
|
|
|
@OneToOne
|
|
@JoinColumn(name = "user_id")
|
|
private User user;
|
|
|
|
@OneToOne
|
|
@JoinColumn(name = "hotel_id")
|
|
private Hotel hotel;
|
|
|
|
@Column(name = "userHotelDescribe")
|
|
private String describe;
|
|
|
|
@Column(name = "createDate")
|
|
private Date createDate;
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public User getUser() {
|
|
return user;
|
|
}
|
|
|
|
public void setUser(User user) {
|
|
this.user = user;
|
|
}
|
|
|
|
public Hotel getHotel() {
|
|
return hotel;
|
|
}
|
|
|
|
public void setHotel(Hotel hotel) {
|
|
this.hotel = hotel;
|
|
}
|
|
|
|
public String getDescribe() {
|
|
return describe;
|
|
}
|
|
|
|
public void setDescribe(String describe) {
|
|
this.describe = describe;
|
|
}
|
|
|
|
public Date getCreateDate() {
|
|
return createDate;
|
|
}
|
|
|
|
public void setCreateDate(Date createDate) {
|
|
this.createDate = createDate;
|
|
}
|
|
}
|