INT-3150: JPA: Add support for max-results-expression

JIRA: https://jira.springsource.org/browse/INT-3150