Annotation Interface ValueColumn


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

Example:

@SqlQuery("select key, value from config")
@KeyColumn("key")
@ValueColumn("value")
Map<String, String> getConfigs();
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the column name to use for map values.
  • Element Details

    • value

      String value
      Returns the column name to use for map values.
      Returns:
      the column name to use for map values.