浏览代码

jfinal 3.6

James 7 年之前
父节点
当前提交
f371a3f732
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/jfinal/plugin/activerecord/Model.java

+ 1 - 1
src/main/java/com/jfinal/plugin/activerecord/Model.java

@@ -575,7 +575,7 @@ public abstract class Model<M extends Model> implements Serializable {
 		for (int i=0; i<pKeys.length; i++) {
 		for (int i=0; i<pKeys.length; i++) {
 			ids[i] = attrs.get(pKeys[i]);
 			ids[i] = attrs.get(pKeys[i]);
 			if (ids[i] == null)
 			if (ids[i] == null)
-				throw new ActiveRecordException("You can't delete model without primary key value, " + pKeys[i] + " is null");
+				throw new ActiveRecordException("Primary key " + pKeys[i] + " can not be null");
 		}
 		}
 		return deleteById(table, ids);
 		return deleteById(table, ids);
 	}
 	}