Browse Source

jfinal 3.6

James 7 years ago
parent
commit
a22d8a349d
1 changed files with 1 additions and 1 deletions
  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");