Browse Source

jfinal 3.6

James 7 years ago
parent
commit
dffc0bbdfd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/jfinal/plugin/activerecord/Model.java

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

@@ -744,11 +744,11 @@ public abstract class Model<M extends Model> implements Serializable {
 	 * Find model by composite id values.
 	 * Find model by composite id values.
 	 * <pre>
 	 * <pre>
 	 * Example:
 	 * Example:
-	 * User user = User.dao.findById(123, 456);
+	 * User user = User.dao.findByIds(123, 456);
 	 * </pre>
 	 * </pre>
 	 * @param idValues the composite id values of the model
 	 * @param idValues the composite id values of the model
 	 */
 	 */
-	public M findById(Object... idValues) {
+	public M findByIds(Object... idValues) {
 		return findByIdLoadColumns(idValues, "*");
 		return findByIdLoadColumns(idValues, "*");
 	}
 	}