/*
* Distributable under LGPL v3 license.
* See terms of license at https://github.com/Yunfeng/schotel/blob/master/LICENSE
*/
package cn.buk.hotel.entity;
import javax.persistence.*;
/**
* User: william
* Date: 14-10-30
* Time: 下午7:37
*/
@Entity
@Table(name="hotel_multimedia")
public class HotelMultimediaInfo {
/**
* 酒店外观图片
*/
public static final int HOTEL_PICTURE_EXTERIOR_VIEW = 1;
/**
* 酒店描述
*/
public static final int HOTEL_TEXT_DESC = 11;
@Id
@GeneratedValue
private int id;
@ManyToOne
@JoinColumn(name="hotel_id")
private HotelInfo hotelInfo;
/**
* image
* text
*/
private String mediaType;
/**
* Picture Category Code(Image)
1 Exterior view
2 Lobby view
3 Pool view
4 Restaurant
5 Health club
6 Guest room
7 Suite
8 Meeting room
9 Ballroom
10 Golf course
11 Beach
12 Spa
13 Bar/Lounge
14 Recreational facility
15 Logo
16 Basics
17 Map
18 Promotional
19 Hot news
20 Miscellaneous
21 Guest room amenity
22 Property amenity
23 Business center
*/
private int category;
private String caption;
private String url;
@Column(length = 8000)
private String description;
public HotelInfo getHotelInfo() {
return hotelInfo;
}
public void setHotelInfo(HotelInfo hotelInfo) {
this.hotelInfo = hotelInfo;
}
public String getMediaType() {
return mediaType;
}
public void setMediaType(String mediaType) {
this.mediaType = mediaType;
}
public int getCategory() {
return category;
}
public void setCategory(int category) {
this.category = category;
}
public String getCaption() {
return caption;
}
public void setCaption(String caption) {
this.caption = caption;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}