2

Aggregation query is select min(sal) as minSal, max(sal) maxSal from Emp.

I think it is redundant to create a Mapper and VO only for this use-case.

Is there a predefined mapper where I can post result into a map for example exists in JDBi?

zloster
  • 1,149
  • 11
  • 26
Nageswara Rao
  • 954
  • 1
  • 10
  • 32

1 Answers1

1

There is the class DefaultMapper available to do this.

package org.skife.jdbi.v2;

public class DefaultMapper implements ResultSetMapper<Map<String, Object>> {
  /* .... */
}
ahus1
  • 5,782
  • 24
  • 42