Package org.jdbi.v3.sqlobject.config
Annotation Type KeyColumn
-
@Target(METHOD) @Retention(RUNTIME) public @interface KeyColumnConfigures the column to use for map keys, for SQL methods that returnMap, or Guava's Multimap.Example:
@SqlQuery("select * from user") @KeyColumn("id") Map<Long, User> getUsersById();
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringvalueReturns the column name to use for map keys.
-