@Retention(value=RUNTIME) @Target(value=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.
Copyright © 2016. All rights reserved.