i have the same question and i found this: http://mail-archives.apache.org/mod_mbox//incubator-cloudstack-dev/201301.mbox/%3ccanlssbxhw5fhwrn3bs+yoj6ycpbbdu1khjzq4ncaa59fqfa...@mail.gmail.com%3E
seems this annotation is used for converting entity UUID->ID -Mice 2013/1/28 Kelven Yang <kelven.y...@citrix.com>: > I have a question about a change in @Parameter at API layer, in regards to > entityType, does anyone know the reason behind why it has to go through > with some Response class which in turn declares links to the entity class > via @EntityReference annotation? > > And in DeployVMCmd as an example, there is also another special field > (ipToNetworkList) declares entity reference directly, could someone > clarify it? > > @ACL(checkKeyAccess=true) > @Parameter(name = ApiConstants.IP_NETWORK_LIST, type = > CommandType.MAP, entityType={Network.class, IpAddress.class}, > description = "ip to network mapping. Can't be specified with > networkIds parameter." + > " Example: > iptonetworklist[0].ip=10.10.10.11&iptonetworklist[0].networkid=uuid - > requests to use ip 10.10.10.11 in network id=uuid") > private Map ipToNetworkList; > > Kelven > >