Annotation Type KeyColumn


@Target(METHOD) @Retention(RUNTIME) public @interface KeyColumn
Configures the column to use for map keys, for SQL methods that return Map, or Guava's Multimap.

Example:

 @SqlQuery("select * from user")
 @KeyColumn("id")
 Map<Long, User> getUsersById();