Add UserHotel

liuxiaomei
pfor58hiw 5 months ago
parent dff8680515
commit 4499663128

@ -0,0 +1,67 @@
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;
}
}
Loading…
Cancel
Save