JpaQueryHint dataRowsHint = jpaQuery.getHint(QueryHints.DATA_ROWS_HINT);
if (dataRowsHint != null) {
query.setFetchingDataRows("true".equalsIgnoreCase(dataRowsHint.getValue()));
}
return query.queryWithParameters(parameters != null
? parameters
: Collections.EMPTY_MAP);
}
}