package com.newvideo.domain; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.persistence.Entity; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import com.google.gson.annotations.Expose; /** * 视频信息 * * @author Administrator * */ @Entity public class VideoInfo implements Serializable, Comparable { /** * */ private static final long serialVersionUID = 1L; @Expose // @Field private String id; @Expose // @Field private String picture; @Expose // @Field private String name; @Expose private String introduction; @Expose private String duration; @Expose // @Field private String mainActor; @Expose private String year; @Expose private VideoType videoType; private String orderby; @Expose private String thirdType = "0"; private AdminInfo admin; @Expose private String beizhu; @Expose private String qulity; @Expose private long createtime; @Expose // @Field private String score; @Expose private String watchCount; private String show; @Expose private String nowNumber;// 更新到了第几集 @Expose private String finish;// 是否更新完了?0-没有 1-更新完了 private String baseurl;// 专辑的地址c @Expose // @Field private String share;// 是否必须分享 private String totalNumber;// 所有集数 @Expose // @Field private String tag; @Expose // @Field private boolean canSave;// 0-不能缓存 1-能缓存 @Expose private String area;// 地区 @Expose private int commentCount; // @Field private String updatetime; private String month; private String day; private List resourceList; private List typeList; private String focus;// 看点 private String leafctgs; private String keyword; // 内容类型 private int contentType; @Expose private int showType;// 1-长条 2-短条 @Expose private String playPicture; @Expose private String vpicture; @Expose private String hpicture; private String latestVpicture; private String latestHpicture; private int latestWatchCount; private int videocount; @Expose private int vType; //0 public int getvType() { return vType; } public void setvType(int vType) { this.vType = vType; } public int getVideocount() { return videocount; } public void setVideocount(int videocount) { this.videocount = videocount; } public int getLatestWatchCount() { return latestWatchCount; } public void setLatestWatchCount(int latestWatchCount) { this.latestWatchCount = latestWatchCount; } public String getLatestVpicture() { return latestVpicture; } public void setLatestVpicture(String latestVpicture) { this.latestVpicture = latestVpicture; } public String getLatestHpicture() { return latestHpicture; } public void setLatestHpicture(String latestHpicture) { this.latestHpicture = latestHpicture; } public String getVpicture() { return vpicture; } public void setVpicture(String vpicture) { this.vpicture = vpicture; } public String getHpicture() { return hpicture; } public void setHpicture(String hpicture) { this.hpicture = hpicture; } public String getPlayPicture() { return playPicture; } public void setPlayPicture(String playPicture) { this.playPicture = playPicture; } public int getShowType() { return showType; } public void setShowType(int showType) { this.showType = showType; } public int getContentType() { return contentType; } public void setContentType(int contentType) { this.contentType = contentType; } public String getKeyword() { return keyword; } public void setKeyword(String keyword) { this.keyword = keyword; } public String getFocus() { return focus; } public void setFocus(String focus) { this.focus = focus; } public String getLeafctgs() { return leafctgs; } public void setLeafctgs(String leafctgs) { this.leafctgs = leafctgs; } public List getResourceList() { return resourceList; } public void setResourceList(List resourceList) { this.resourceList = resourceList; } public List getTypeList() { return typeList; } public void setTypeList(List typeList) { this.typeList = typeList; } public int getCommentCount() { return commentCount; } public void setCommentCount(int commentCount) { this.commentCount = commentCount; } public String getArea() { return area; } public void setArea(String area) { this.area = area; } private String director; public String getDirector() { return director; } public void setDirector(String director) { this.director = director; } public String getMonth() { return month; } public void setMonth(String month) { this.month = month; } public String getDay() { return day; } public void setDay(String day) { this.day = day; } public String getUpdatetime() { return updatetime; } public void setUpdatetime(String updatetime) { this.updatetime = updatetime; } public static long getSerialversionuid() { return serialVersionUID; } public boolean isCanSave() { return canSave; } public void setCanSave(boolean canSave) { this.canSave = canSave; } public String getTag() { return tag; } public void setTag(String tag) { this.tag = tag; } public String getTotalNumber() { return totalNumber; } public void setTotalNumber(String totalNumber) { this.totalNumber = totalNumber; } public String getShare() { return share; } public void setShare(String share) { this.share = share; } public VideoInfo() { } public VideoInfo(String id) { this.id = id; } public String getBaseurl() { return baseurl; } public void setBaseurl(String baseurl) { this.baseurl = baseurl; } public String getNowNumber() { return nowNumber; } public void setNowNumber(String nowNumber) { this.nowNumber = nowNumber; } public String getFinish() { return finish; } public void setFinish(String finish) { this.finish = finish; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getThirdType() { return thirdType; } public void setThirdType(String thirdType) { this.thirdType = thirdType; } public String getOrderby() { return orderby; } public void setOrderby(String orderby) { this.orderby = orderby; } public String getMainActor() { return mainActor; } public void setMainActor(String mainActor) { this.mainActor = mainActor; } @ManyToOne public VideoType getVideoType() { return videoType; } public void setVideoType(VideoType videoType) { this.videoType = videoType; } public String getWatchCount() { return watchCount; } public void setWatchCount(String watchCount) { this.watchCount = watchCount; } public String getShow() { return show; } public void setShow(String show) { this.show = show; } private List videoDetailList = new ArrayList(); @OneToMany public List getVideoDetailList() { return videoDetailList; } public void setVideoDetailList(List videoDetailList) { this.videoDetailList = videoDetailList; } public String getScore() { return score; } public void setScore(String score) { this.score = score; } public String getPicture() { return picture; } public void setPicture(String picture) { this.picture = picture; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getIntroduction() { return introduction; } public void setIntroduction(String introduction) { this.introduction = introduction; } public String getDuration() { return duration; } public void setDuration(String duration) { this.duration = duration; } public String getYear() { return year; } public void setYear(String year) { this.year = year; } @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 getQulity() { return qulity; } public void setQulity(String qulity) { this.qulity = qulity; } public long getCreatetime() { return createtime; } public void setCreatetime(long createtime) { this.createtime = createtime; } // 用作分類統計 // @Field private String type; public String getType() { return type; } public void setType(String type) { this.type = type; } public int compareTo(Object o) { return 0; } }