package com.yeshi.buwan.domain;
|
|
import java.io.Serializable;
|
import java.util.ArrayList;
|
import java.util.List;
|
|
import com.google.gson.annotations.Expose;
|
import com.google.gson.annotations.SerializedName;
|
|
import javax.persistence.Entity;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.Id;
|
import javax.persistence.ManyToOne;
|
import javax.persistence.OneToMany;
|
|
/**
|
* 视频详情
|
*
|
* @author Administrator
|
*
|
*/
|
@Entity
|
public class VideoDetailInfo implements Serializable {
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
private Long id;
|
@ManyToOne
|
private VideoInfo video;
|
|
@Expose
|
private String picture;
|
|
public String getPicture() {
|
return picture;
|
}
|
|
public void setPicture(String picture) {
|
this.picture = picture;
|
}
|
|
public VideoDetailInfo() {
|
}
|
|
public VideoDetailInfo(long id) {
|
this.id = id;
|
}
|
|
public VideoInfo getVideo() {
|
return video;
|
}
|
|
public void setVideo(VideoInfo video) {
|
this.video = video;
|
}
|
|
@Id
|
@GeneratedValue
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
@Expose
|
private String introduction;
|
|
public String getIntroduction() {
|
return introduction;
|
}
|
|
public void setIntroduction(String introduction) {
|
this.introduction = introduction;
|
}
|
|
@Expose
|
private String name;
|
private AdminInfo admin;
|
private String beizhu;
|
@Expose
|
private String createtime;
|
@Expose
|
private List<VideoUrl> urls = new ArrayList<VideoUrl>();
|
@Expose
|
private String type;
|
|
@Expose
|
@SerializedName("Id")
|
private String extraId;
|
|
@Expose
|
private long watchCount;
|
|
public long getWatchCount() {
|
return watchCount;
|
}
|
|
public void setWatchCount(long watchCount) {
|
this.watchCount = watchCount;
|
}
|
|
public String getExtraId() {
|
return extraId;
|
}
|
|
public void setExtraId(String extraId) {
|
this.extraId = extraId;
|
}
|
|
public String getType() {
|
return type;
|
}
|
|
public void setType(String type) {
|
this.type = type;
|
}
|
|
@OneToMany
|
public List<VideoUrl> getUrls() {
|
return urls;
|
}
|
|
public void setUrls(List<VideoUrl> urls) {
|
this.urls = urls;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
@ManyToOne
|
public AdminInfo getAdmin() {
|
return admin;
|
}
|
|
public void setAdmin(AdminInfo admin) {
|
this.admin = admin;
|
}
|
|
public String getBeizhu() {
|
return beizhu;
|
}
|
|
public void setBeizhu(String beizhu) {
|
this.beizhu = beizhu;
|
}
|
|
public String getCreatetime() {
|
return createtime;
|
}
|
|
public void setCreatetime(String createtime) {
|
this.createtime = createtime;
|
}
|
|
public String getTag() {
|
return tag;
|
}
|
|
public void setTag(String tag) {
|
this.tag = tag;
|
}
|
|
@Expose
|
private String tag;
|
@Expose
|
private String comment;
|
|
public String getComment() {
|
return comment;
|
}
|
|
public void setComment(String comment) {
|
this.comment = comment;
|
}
|
}
|