JPA Method
in jakarta.persistence.Query

int 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 results
Since:
JPA 2.0