XXXDao中Properties的一些字段屬性都有給字段排序號,比如new Property的第一個參數(shù)
public static final Property CREATE_TIME= new Property(15, Integer.class, "createTime", false, "create_time");
查看源碼就知道第一個字段是ordinal
public Property(int ordinal, Class<?> type, String name, boolean primaryKey, String columnName) {
this.ordinal = ordinal;
this.type = type;
this.name = name;
this.primaryKey = primaryKey;
this.columnName = columnName;
}
所以出現(xiàn)這個錯誤废亭,就說明你定義的一些字段用了重復的ordinal