Next, create a stored procedure that returns the records and the count as two separate result sets. Follow the manual to create a resultmap that maps the count on the main class and the records on the nested collection. This should work, but it would be nice if MyBatis would require you...