浏览代码

jfinal 3.6

James 7 年之前
父节点
当前提交
a22d8a349d
共有 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

@@ -603,7 +603,7 @@ public abstract class Model<M extends Model> implements Serializable {
 	 * @param idValues the composite id values of the model
 	 * @return true if delete succeed otherwise false
 	 */
-	public boolean deleteById(Object... idValues) {
+	public boolean deleteByIds(Object... idValues) {
 		Table table = _getTable();
 		if (idValues == null || idValues.length != table.getPrimaryKey().length)
 			throw new IllegalArgumentException("Primary key nubmer must equals id value number and can not be null");