|
@@ -5,8 +5,8 @@ import javax.persistence.Entity;
|
|
|
import javax.persistence.Id;
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
-import cn.com.qmth.examcloud.commons.web.cloud.api.JsonSerializable;
|
|
|
import cn.com.qmth.examcloud.commons.web.helpers.tree.TreeNode;
|
|
|
+import cn.com.qmth.examcloud.commons.web.support.JpaEntitySupport;
|
|
|
|
|
|
/**
|
|
|
* 权限
|
|
@@ -17,7 +17,7 @@ import cn.com.qmth.examcloud.commons.web.helpers.tree.TreeNode;
|
|
|
*/
|
|
|
@Entity
|
|
|
@Table(name = "EC_B_PRIVILEGE")
|
|
|
-public class Privilege implements TreeNode, JsonSerializable {
|
|
|
+public class Privilege extends JpaEntitySupport implements TreeNode {
|
|
|
|
|
|
private static final long serialVersionUID = -6288949236298877031L;
|
|
|
|
|
@@ -47,8 +47,8 @@ public class Privilege implements TreeNode, JsonSerializable {
|
|
|
/**
|
|
|
* 组(权限分组,同一组的权限构成权限树)
|
|
|
*/
|
|
|
- @Column(unique = true, nullable = false)
|
|
|
- private String group;
|
|
|
+ @Column(unique = false, nullable = false)
|
|
|
+ private String groupId;
|
|
|
|
|
|
public String getId() {
|
|
|
return id;
|
|
@@ -82,12 +82,12 @@ public class Privilege implements TreeNode, JsonSerializable {
|
|
|
this.domain = domain;
|
|
|
}
|
|
|
|
|
|
- public String getGroup() {
|
|
|
- return group;
|
|
|
+ public String getGroupId() {
|
|
|
+ return groupId;
|
|
|
}
|
|
|
|
|
|
- public void setGroup(String group) {
|
|
|
- this.group = group;
|
|
|
+ public void setGroupId(String groupId) {
|
|
|
+ this.groupId = groupId;
|
|
|
}
|
|
|
|
|
|
}
|