|
|
@@ -1,9 +1,6 @@
|
|
|
package cn.seecoder.seecoderbokserver.domain;
|
|
|
|
|
|
-import javax.persistence.Column;
|
|
|
-import javax.persistence.Entity;
|
|
|
-import javax.persistence.Id;
|
|
|
-import javax.persistence.Table;
|
|
|
+import javax.persistence.*;
|
|
|
|
|
|
/**
|
|
|
* @author: Leonezhurui
|
|
|
@@ -17,7 +14,8 @@ import javax.persistence.Table;
|
|
|
@Table(name = "knowledge_point")
|
|
|
public class KnowledgePoint {
|
|
|
@Id
|
|
|
- private int id;
|
|
|
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
+ private Integer id;
|
|
|
|
|
|
@Column(name = "name", nullable = false)
|
|
|
private String name;
|
|
|
@@ -32,13 +30,13 @@ public class KnowledgePoint {
|
|
|
private String abbreviation;
|
|
|
|
|
|
@Column(name = "parent_id", nullable = false)
|
|
|
- private int parentId;
|
|
|
+ private Integer parentId;
|
|
|
|
|
|
@Column(name = "isleaf", nullable = false)
|
|
|
- private int isleaf;
|
|
|
+ private Integer isleaf;
|
|
|
|
|
|
@Column(name = "grasp", nullable = true)
|
|
|
- private int grasp;
|
|
|
+ private Integer grasp;
|
|
|
|
|
|
@Column(name = "description", nullable = true)
|
|
|
private String description;
|
|
|
@@ -57,11 +55,11 @@ public class KnowledgePoint {
|
|
|
'}';
|
|
|
}
|
|
|
|
|
|
- public int getId() {
|
|
|
+ public Integer getId() {
|
|
|
return id;
|
|
|
}
|
|
|
|
|
|
- public void setId(int id) {
|
|
|
+ public void setId(Integer id) {
|
|
|
this.id = id;
|
|
|
}
|
|
|
|
|
|
@@ -89,27 +87,27 @@ public class KnowledgePoint {
|
|
|
this.abbreviation = abbreviation;
|
|
|
}
|
|
|
|
|
|
- public int getParentId() {
|
|
|
+ public Integer getParentId() {
|
|
|
return parentId;
|
|
|
}
|
|
|
|
|
|
- public void setParentId(int parentId) {
|
|
|
+ public void setParentId(Integer parentId) {
|
|
|
this.parentId = parentId;
|
|
|
}
|
|
|
|
|
|
- public int getIsleaf() {
|
|
|
+ public Integer getIsleaf() {
|
|
|
return isleaf;
|
|
|
}
|
|
|
|
|
|
- public void setIsleaf(int isleaf) {
|
|
|
+ public void setIsleaf(Integer isleaf) {
|
|
|
this.isleaf = isleaf;
|
|
|
}
|
|
|
|
|
|
- public int getGrasp() {
|
|
|
+ public Integer getGrasp() {
|
|
|
return grasp;
|
|
|
}
|
|
|
|
|
|
- public void setGrasp(int grasp) {
|
|
|
+ public void setGrasp(Integer grasp) {
|
|
|
this.grasp = grasp;
|
|
|
}
|
|
|
|