org.springframework.data.relational.core.mapping

## Annotation Type MappedCollection

    @Retention(value=RUNTIME)
     @Target(value={FIELD,METHOD,ANNOTATION_TYPE})
     @Documented
    public @interface MappedCollection

The annotation to configure the mapping for a `List`, `Set` or `Map` property in the database.

Since:
  1.1
Author:
  Bastian Wilhelm, Mark Paluch

### Optional Element Summary

Optional Elements
`String` `idColumn` The column name for id column in the corresponding relationship table.
`String` `keyColumn` The column name for key columns of `List` or `Map` collections in the corresponding relationship table.

### Element Detail

#### idColumn

    public abstract String idColumn

The column name for id column in the corresponding relationship table. Defaults to `NamingStrategy` usage if the value is empty.

See Also:
  `NamingStrategy.getReverseColumnName(RelationalPersistentProperty)`

Default:
  ""

#### keyColumn

    public abstract String keyColumn

The column name for key columns of `List` or `Map` collections in the corresponding relationship table. Defaults to `NamingStrategy` usage if the value is empty.

See Also:
  `NamingStrategy.getKeyColumn(RelationalPersistentProperty)`

Default:
  ""