mgaforever wrote:
I hope it is the appropriate section
probably not ;-)
mgaforever wrote:
I ask through setMaxResults (2) to do the update only on the first two and he makes the update of all records as I do what is wrong?? thanks for any help
Code:
/**
* Set the maximum number of rows to retrieve. If not set,
* there is no limit to the number of rows retrieved.
* @param maxResults the maximum number of rows
*/
public Query setMaxResults(int maxResults);
as it is written in the description, setMaxResults just limits the number of rows you retrieve with a "select" statement.