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++) {
 			ids[i] = attrs.get(pKeys[i]);
 			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);
 	}