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");