You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.8 KiB
81 lines
1.8 KiB
package org.pqh.core.model;
|
|
|
|
import javax.persistence.*;
|
|
import java.io.Serializable;
|
|
import java.util.Objects;
|
|
|
|
@Entity
|
|
@Table(name = "bangumi", schema = "bilibili")
|
|
public class BangumiEntity extends AbstractModel{
|
|
private int bangumiId;
|
|
private Integer seasonId;
|
|
private String title;
|
|
private String allowDownload;
|
|
|
|
@Id
|
|
@Column(name = "bangumi_id")
|
|
public int getBangumiId() {
|
|
return bangumiId;
|
|
}
|
|
|
|
public void setBangumiId(int bangumiId) {
|
|
this.bangumiId = bangumiId;
|
|
}
|
|
|
|
@Basic
|
|
@Column(name = "season_id")
|
|
public Integer getSeasonId() {
|
|
return seasonId;
|
|
}
|
|
|
|
public void setSeasonId(Integer seasonId) {
|
|
this.seasonId = seasonId;
|
|
}
|
|
|
|
@Basic
|
|
@Column(name = "title")
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
@Basic
|
|
@Column(name = "allow_download")
|
|
public String getAllowDownload() {
|
|
return allowDownload;
|
|
}
|
|
|
|
public void setAllowDownload(String allowDownload) {
|
|
this.allowDownload = allowDownload;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) return true;
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
BangumiEntity that = (BangumiEntity) o;
|
|
return bangumiId == that.bangumiId &&
|
|
Objects.equals(seasonId, that.seasonId) &&
|
|
Objects.equals(title, that.title) &&
|
|
Objects.equals(allowDownload, that.allowDownload);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
|
|
return Objects.hash(bangumiId, seasonId, title, allowDownload);
|
|
}
|
|
|
|
@Override
|
|
public Serializable primaryKey() {
|
|
return getBangumiId();
|
|
}
|
|
|
|
@Override
|
|
public String tableNote() {
|
|
return "bangumi";
|
|
}
|
|
}
|
|
|