Annotation Type Mapify


@Retention(RUNTIME) @Target(FIELD) public @interface Mapify

This annotation causes collection fields to be converted into a map by selecting out a key field of your choosing.

The field must be of type Map. An instance of the Mapper will be created and used to extract a key from each value; this will become the key of the map. The actual value stored in the datastore will be a simple list of the map values.

Author:
Jeff Schnitzer invalid input: '<'[email protected]>
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Mapper>
    An instance of this class will be instantiated and used to extract the key from the value.
  • Element Details

    • value

      Class<? extends Mapper> value
      An instance of this class will be instantiated and used to extract the key from the value.