package com.newvideo.domain;
|
|
import java.util.List;
|
|
import javax.persistence.Entity;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.Id;
|
import javax.persistence.ManyToMany;
|
import javax.persistence.ManyToOne;
|
|
/**
|
* 视频类型
|
*
|
* @author Administrator
|
*
|
*/
|
@Entity
|
public class VideoTypeAdmin {
|
@Id
|
@GeneratedValue
|
private long id;
|
private String beizhu;
|
private String createtime;
|
@ManyToMany(mappedBy = "child")
|
private List<VideoTypeAdmin> child;// 下面的子分类
|
private String icon;
|
private AdminInfo admin;
|
private String show;// 是否在页面上面显示 0-不显示 1-显示
|
private String name;
|
|
public List<VideoTypeAdmin> getChild() {
|
return child;
|
}
|
|
public void setChild(List<VideoTypeAdmin> child) {
|
this.child = child;
|
}
|
|
public long getId() {
|
return id;
|
}
|
|
public void setId(long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getShow() {
|
return show;
|
}
|
|
public void setShow(String show) {
|
this.show = show;
|
}
|
|
public String getIcon() {
|
return icon;
|
}
|
|
public void setIcon(String icon) {
|
this.icon = icon;
|
}
|
|
@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;
|
}
|
|
}
|