|
|
@@ -9,12 +9,12 @@ import javax.persistence.Table;
|
|
|
* @author: Leonezhurui
|
|
|
* @Date: 2021/8/30 - 9:16 上午
|
|
|
* @Package: SEEC-BOK
|
|
|
- *
|
|
|
+ * <p>
|
|
|
* 知识点
|
|
|
*/
|
|
|
|
|
|
@Entity
|
|
|
-@Table(name = "knowledge")
|
|
|
+@Table(name = "knowledge_point")
|
|
|
public class KnowledgePoint {
|
|
|
@Id
|
|
|
private int id;
|
|
|
@@ -22,7 +22,7 @@ public class KnowledgePoint {
|
|
|
@Column(name = "name", nullable = false)
|
|
|
private String name;
|
|
|
|
|
|
- @Column(name = "name_eng", nullable = false)
|
|
|
+ @Column(name = "name_eng", nullable = true)
|
|
|
private String nameEng;
|
|
|
|
|
|
/**
|
|
|
@@ -34,34 +34,26 @@ public class KnowledgePoint {
|
|
|
@Column(name = "parent_id", nullable = false)
|
|
|
private int parentId;
|
|
|
|
|
|
- @Column(name = "parent_name", nullable = false)
|
|
|
- private String parentName;
|
|
|
-
|
|
|
- @Column(name = "uid", nullable = false)
|
|
|
- private int uid;
|
|
|
-
|
|
|
- @Column(name = "pid", nullable = false)
|
|
|
- private int pid;
|
|
|
-
|
|
|
@Column(name = "isleaf", nullable = false)
|
|
|
private int isleaf;
|
|
|
|
|
|
- @Column(name = "grasp", nullable = false)
|
|
|
+ @Column(name = "grasp", nullable = true)
|
|
|
private int grasp;
|
|
|
|
|
|
+ @Column(name = "description", nullable = true)
|
|
|
+ private String description;
|
|
|
+
|
|
|
@Override
|
|
|
public String toString() {
|
|
|
- return "Knowledge{" +
|
|
|
+ return "KnowledgePoint{" +
|
|
|
"id=" + id +
|
|
|
", name='" + name + '\'' +
|
|
|
", nameEng='" + nameEng + '\'' +
|
|
|
", abbreviation='" + abbreviation + '\'' +
|
|
|
", parentId=" + parentId +
|
|
|
- ", parentName='" + parentName + '\'' +
|
|
|
- ", uid=" + uid +
|
|
|
- ", pid=" + pid +
|
|
|
", isleaf=" + isleaf +
|
|
|
", grasp=" + grasp +
|
|
|
+ ", description='" + description + '\'' +
|
|
|
'}';
|
|
|
}
|
|
|
|
|
|
@@ -105,34 +97,6 @@ public class KnowledgePoint {
|
|
|
this.parentId = parentId;
|
|
|
}
|
|
|
|
|
|
- public String getParentName() {
|
|
|
- return parentName;
|
|
|
- }
|
|
|
-
|
|
|
- public int getGrasp() {
|
|
|
- return grasp;
|
|
|
- }
|
|
|
-
|
|
|
- public void setParentName(String parentName) {
|
|
|
- this.parentName = parentName;
|
|
|
- }
|
|
|
-
|
|
|
- public int getUid() {
|
|
|
- return uid;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUid(int uid) {
|
|
|
- this.uid = uid;
|
|
|
- }
|
|
|
-
|
|
|
- public int getPid() {
|
|
|
- return pid;
|
|
|
- }
|
|
|
-
|
|
|
- public void setPid(int pid) {
|
|
|
- this.pid = pid;
|
|
|
- }
|
|
|
-
|
|
|
public int getIsleaf() {
|
|
|
return isleaf;
|
|
|
}
|
|
|
@@ -141,7 +105,19 @@ public class KnowledgePoint {
|
|
|
this.isleaf = isleaf;
|
|
|
}
|
|
|
|
|
|
+ public int getGrasp() {
|
|
|
+ return grasp;
|
|
|
+ }
|
|
|
+
|
|
|
public void setGrasp(int grasp) {
|
|
|
this.grasp = grasp;
|
|
|
}
|
|
|
+
|
|
|
+ public String getDescription() {
|
|
|
+ return description;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDescription(String description) {
|
|
|
+ this.description = description;
|
|
|
+ }
|
|
|
}
|