浏览代码

org增加注释

ting.yin 8 年之前
父节点
当前提交
87e6aab3e5
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      core-domain/src/main/java/cn/com/qmth/examcloud/service/core/entity/Org.java

+ 6 - 2
core-domain/src/main/java/cn/com/qmth/examcloud/service/core/entity/Org.java

@@ -19,10 +19,14 @@ public class Org implements Serializable{
     @Id
     @Id
     @GeneratedValue
     @GeneratedValue
     private Long id;
     private Long id;
-
+    /**
+     * 顶级机构id,无上级时为0;eg.学校即是顶级
+     */
     @NotNull
     @NotNull
     private Long rootId;
     private Long rootId;
-
+    /**
+     * 父级机构id,无上级时为0;eg.学习中心的父级为学校
+     */
     @NotNull
     @NotNull
     private Long parentId;
     private Long parentId;