Prechádzať zdrojové kódy

删除多余的属性u_id

周浩 9 rokov pred
rodič
commit
65664fd167

+ 0 - 20
hsweb-web-bean/src/main/java/org/hsweb/web/bean/po/config/Config.java

@@ -13,8 +13,6 @@ import java.util.Properties;
 public class Config extends GenericPo<String> {
 
     private static final long serialVersionUID = 5328848488856425388L;
-    //主键
-    private String u_id;
 
     //备注
     private String remark;
@@ -28,24 +26,6 @@ public class Config extends GenericPo<String> {
     //最后一次修改日期
     private java.util.Date update_date;
 
-    /**
-     * 获取 主键
-     *
-     * @return String 主键
-     */
-    public String getU_id() {
-        if (this.u_id == null)
-            return "";
-        return this.u_id;
-    }
-
-    /**
-     * 设置 主键
-     */
-    public void setU_id(String u_id) {
-        this.u_id = u_id;
-    }
-
     /**
      * 获取 备注
      *

+ 0 - 20
hsweb-web-bean/src/main/java/org/hsweb/web/bean/po/form/Form.java

@@ -10,9 +10,6 @@ public class Form extends GenericPo<String> {
 
     private static final long serialVersionUID = 8910856253780046561L;
 
-    //主键
-    private String u_id;
-
     //名称
     private String name;
 
@@ -40,23 +37,6 @@ public class Form extends GenericPo<String> {
     //最后一次修改时间
     private java.util.Date update_date;
 
-    /**
-     * 获取 主键
-     *
-     * @return String 主键
-     */
-    public String getU_id() {
-        if (this.u_id == null)
-            return "";
-        return this.u_id;
-    }
-
-    /**
-     * 设置 主键
-     */
-    public void setU_id(String u_id) {
-        this.u_id = u_id;
-    }
 
     /**
      * 获取 名称

+ 0 - 22
hsweb-web-bean/src/main/java/org/hsweb/web/bean/po/module/Module.java

@@ -15,10 +15,6 @@ import java.util.*;
  */
 public class Module extends GenericPo<String> implements Comparable<Module> {
     private static final long serialVersionUID = 8910856253780046561L;
-    //主键
-    @NotNull
-    @NotEmpty(message = "id不能为空")
-    private String u_id;
 
     //模块名称
     @NotNull
@@ -48,24 +44,6 @@ public class Module extends GenericPo<String> implements Comparable<Module> {
 
     private String old_id;
 
-    /**
-     * 获取 主键
-     *
-     * @return String 主键
-     */
-    public String getU_id() {
-        if (this.u_id == null)
-            return "";
-        return this.u_id;
-    }
-
-    /**
-     * 设置 主键
-     */
-    public void setU_id(String u_id) {
-        this.u_id = u_id;
-    }
-
     /**
      * 获取 模块名称
      *

+ 0 - 21
hsweb-web-bean/src/main/java/org/hsweb/web/bean/po/resource/Resources.java

@@ -12,10 +12,6 @@ import javax.validation.constraints.NotNull;
  */
 public class Resources extends GenericPo<String> {
     private static final long serialVersionUID = 8910856253780046561L;
-    //主键
-    @NotNull
-    @NotEmpty(message = "id不能为空")
-    private String u_id;
 
     //资源名称
     private String name;
@@ -38,23 +34,6 @@ public class Resources extends GenericPo<String> {
     //状态
     private int status;
 
-    /**
-     * 获取 主键
-     *
-     * @return String 主键
-     */
-    public String getU_id() {
-        if (this.u_id == null)
-            return "";
-        return this.u_id;
-    }
-
-    /**
-     * 设置 主键
-     */
-    public void setU_id(String u_id) {
-        this.u_id = u_id;
-    }
 
     /**
      * 获取 资源名称

+ 0 - 21
hsweb-web-bean/src/main/java/org/hsweb/web/bean/po/role/Role.java

@@ -14,10 +14,6 @@ public class Role extends GenericPo<String> {
 
     public static final String SYS_ROLE_ADMIN = "admin";
     private static final long serialVersionUID = 9197157871004374522L;
-    //主键
-    @NotNull
-    @NotEmpty(message = "主键不能为空")
-    private String u_id;
 
     //角色名称
     @NotNull
@@ -41,23 +37,6 @@ public class Role extends GenericPo<String> {
         this.modules = modules;
     }
 
-    /**
-     * 获取 主键
-     *
-     * @return String 主键
-     */
-    public String getU_id() {
-        if (this.u_id == null)
-            return "";
-        return this.u_id;
-    }
-
-    /**
-     * 设置 主键
-     */
-    public void setU_id(String u_id) {
-        this.u_id = u_id;
-    }
 
     /**
      * 获取 角色名称

+ 0 - 21
hsweb-web-bean/src/main/java/org/hsweb/web/bean/po/role/RoleModule.java

@@ -17,10 +17,6 @@ import java.util.List;
  */
 public class RoleModule extends GenericPo<String> {
     private static final long serialVersionUID = 8910856253780046561L;
-    //主键
-    @NotNull
-    @NotEmpty
-    private String u_id;
 
     //模块主键
     @NotNull
@@ -39,23 +35,6 @@ public class RoleModule extends GenericPo<String> {
 
     private List<String> levels;
 
-    /**
-     * 获取 主键
-     *
-     * @return String 主键
-     */
-    public String getU_id() {
-        if (this.u_id == null)
-            return "";
-        return this.u_id;
-    }
-
-    /**
-     * 设置 主键
-     */
-    public void setU_id(String u_id) {
-        this.u_id = u_id;
-    }
 
     /**
      * 获取 模块主键

+ 0 - 21
hsweb-web-bean/src/main/java/org/hsweb/web/bean/po/role/UserRole.java

@@ -11,9 +11,6 @@ import javax.validation.constraints.NotNull;
  */
 public class UserRole extends GenericPo<String> {
     private static final long serialVersionUID = 8910856253780046561L;
-    //主键
-    @NotEmpty
-    private String u_id;
 
     //用户主键
     @NotEmpty
@@ -26,24 +23,6 @@ public class UserRole extends GenericPo<String> {
     //角色实例
     private transient Role role;
 
-    /**
-     * 获取 主键
-     *
-     * @return String 主键
-     */
-    public String getU_id() {
-        if (this.u_id == null)
-            return "";
-        return this.u_id;
-    }
-
-    /**
-     * 设置 主键
-     */
-    public void setU_id(String u_id) {
-        this.u_id = u_id;
-    }
-
     /**
      * 获取 用户主键
      *

+ 0 - 22
hsweb-web-bean/src/main/java/org/hsweb/web/bean/po/script/DynamicScript.java

@@ -14,10 +14,6 @@ import javax.validation.constraints.Pattern;
  */
 public class DynamicScript extends GenericPo<String> {
     private static final long serialVersionUID = 8910856253780046561L;
-    //主键
-    @NotNull
-    @NotEmpty(message = "id不能为空")
-    private String u_id;
 
     //名称
     @Length(min = 4, message = "名称长度不能少于4")
@@ -41,24 +37,6 @@ public class DynamicScript extends GenericPo<String> {
     //状态
     private int status;
 
-    /**
-     * 获取 主键
-     *
-     * @return String 主键
-     */
-    public String getU_id() {
-        if (this.u_id == null)
-            return this.u_id = StringUtils.concat(getPath(), ".", getName(), ".", getType());
-        return this.u_id;
-    }
-
-    /**
-     * 设置 主键
-     */
-    public void setU_id(String u_id) {
-        this.u_id = u_id;
-    }
-
     /**
      * 获取 名称
      *

+ 0 - 22
hsweb-web-bean/src/main/java/org/hsweb/web/bean/po/user/User.java

@@ -17,10 +17,6 @@ import java.util.*;
  */
 public class User extends GenericPo<String> {
     private static final long serialVersionUID = 8910856253780046561L;
-    //主键
-    @NotNull
-    @NotEmpty
-    private String u_id;
 
     //用户名
     @NotNull
@@ -147,24 +143,6 @@ public class User extends GenericPo<String> {
     }
 
 
-    /**
-     * 获取 主键
-     *
-     * @return String 主键
-     */
-    public String getU_id() {
-        if (this.u_id == null)
-            return "";
-        return this.u_id;
-    }
-
-    /**
-     * 设置 主键
-     */
-    public void setU_id(String u_id) {
-        this.u_id = u_id;
-    }
-
     /**
      * 获取 用户名
      *