|
@@ -325,7 +325,22 @@ public class GenTableColumn extends BaseEntity
|
|
|
|
|
|
public static boolean isSuperColumn(String javaField)
|
|
|
{
|
|
|
- return StringUtils.equalsAnyIgnoreCase(javaField, "createBy", "createTime", "updateBy", "updateTime", "remark");
|
|
|
+ return StringUtils.equalsAnyIgnoreCase(javaField,
|
|
|
+ //BaseEntity
|
|
|
+ "createBy", "createTime", "updateBy", "updateTime", "remark",
|
|
|
+ //TreeEntity
|
|
|
+ "parentName", "parentId", "orderNum", "ancestors");
|
|
|
+ }
|
|
|
+
|
|
|
+ public boolean isUsableColumn()
|
|
|
+ {
|
|
|
+ return isUsableColumn(javaField);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static boolean isUsableColumn(String javaField)
|
|
|
+ {
|
|
|
+ //isSuperColumn()中的名单用于避免生成多余Domain属性,若某些属性在生成页面时需要用到不能忽略,则放在此处白名单
|
|
|
+ return StringUtils.equalsAnyIgnoreCase(javaField, "parentId" , "orderNum");
|
|
|
}
|
|
|
|
|
|
public String readConverterExp()
|