Grails command object data binding
Grails has very good support for binding request parameters to a domain object and it's associations. This largely relies on detecting request parameters that end with .id and automatically loading those from the database. However, it's not clear how to populate the associations of a command object. Take the following example: class ProductCommand { String name Collection<AttributeTypeCommand> attributeTypes ProductTypeCommand productType } This object has a single-ended association with ProductTypeCommand and a many-ended association with AttributeTypeCommand . The list of all attribute types