package com.yeshi.buwan.domain;
|
|
import com.yeshi.buwan.domain.user.LoginUser;
|
|
import javax.persistence.Entity;
|
import javax.persistence.ManyToOne;
|
|
/**
|
* 收藏
|
*
|
* @author Administrator
|
*
|
*/
|
@Entity
|
public class Collection {
|
private String id;
|
private UserInfo user;
|
private LoginUser loginUser;
|
private VideoInfo video;
|
private String createtime;
|
private String thirdType;// 0-本地文件 其他网络文件
|
|
|
|
public LoginUser getLoginUser() {
|
return loginUser;
|
}
|
|
public void setLoginUser(LoginUser loginUser) {
|
this.loginUser = loginUser;
|
}
|
|
public String getThirdType() {
|
return thirdType;
|
}
|
|
public void setThirdType(String thirdType) {
|
this.thirdType = thirdType;
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
@ManyToOne
|
public UserInfo getUser() {
|
return user;
|
}
|
|
public void setUser(UserInfo user) {
|
this.user = user;
|
}
|
|
@ManyToOne
|
public VideoInfo getVideo() {
|
return video;
|
}
|
|
public void setVideo(VideoInfo video) {
|
this.video = video;
|
}
|
|
public String getCreatetime() {
|
return createtime;
|
}
|
|
public void setCreatetime(String createtime) {
|
this.createtime = createtime;
|
}
|
}
|