Package org.jdbi.v3.sqlobject.config
Annotation Type 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();
-
Required Element Summary
-
Element Details
-
value
String valueReturns the column name to use for map keys.- Returns:
- The column name to use for map keys.
-