in modello-plugins/modello-plugin-store/src/main/java/org/apache/archiva/redback/components/modello/plugin/store/metadata/StoreMetadataPlugin.java [127:159]
public AssociationMetadata getAssociationMetadata( ModelAssociation association, Map data )
throws ModelloException
{
StoreAssociationMetadata metadata = new StoreAssociationMetadata();
// ----------------------------------------------------------------------
// Associations are per default storable as the fields can't be persisted
// unless the class itself is storable.
// ----------------------------------------------------------------------
metadata.setStorable( getBoolean( data, "stash.storable", true ) );
if ( data.containsKey( PART ) )
{
metadata.setPart( Boolean.valueOf( (String) data.get( PART ) ) );
}
String keyType = (String) data.get( KEY_TYPE );
if ( association.getType() != null && association.getType().equals( "Map" ) )
{
if ( StringUtils.isEmpty( keyType ) )
{
keyType = "String";
}
// TODO: assert the key type
metadata.setKeyType( keyType );
}
return metadata;
}