JPA Methodin jakarta.persistence.Queryint getMaxResults() The maximum number of results the query object was set to retrieve. Returns Integer if setMaxResults() was not applied to the query object. Return: maximum number of resultsSince:JPA 2.0