com.haoxuer.discover.article.data.entity.SensitiveWord Maven / Gradle / Ivy
package com.haoxuer.discover.article.data.entity;
import com.haoxuer.discover.config.data.entity.User;
import com.haoxuer.discover.data.entity.AbstractEntity;
import javax.persistence.*;
/**
* 敏感词
*
* @author 年高
*
*/
@Entity
@Table(name = "article_sensitive_word")
public class SensitiveWord extends AbstractEntity {
/**
* 敏感词
*/
private String word;
/**
* 替换词
*/
@Column(name="replace_word")
private String replace;
/**
* 分类
*/
private Integer catalog;
/**
* 用户
*/
@ManyToOne(fetch=FetchType.LAZY)
private User user;
/**
* 相关类容一共有多少个敏感词
*/
@Column(name="word_size")
private Integer size;
/**
* 敏感词分类
*/
@ManyToOne(fetch=FetchType.LAZY)
private SensitiveCategory category;
public String getWord() {
return word;
}
public void setWord(String word) {
this.word = word;
}
public String getReplace() {
return replace;
}
public Integer getSize() {
return size;
}
public void setSize(Integer size) {
this.size = size;
}
public void setReplace(String replace) {
this.replace = replace;
}
public Integer getCatalog() {
return catalog;
}
public void setCatalog(Integer catalog) {
this.catalog = catalog;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public SensitiveCategory getCategory() {
return category;
}
public void setCategory(SensitiveCategory category) {
this.category = category;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy