Cisco Bug: CSCul93588 - Cannot query against XMP Entities with Map attributes via the NBI
Mar 27, 2014
- Cisco Prime Infrastructure
Known Affected Releases
Symptom: If an XMP Entity exists with an attribute that has the Map stereotype, it is not possible to provide any query syntax in the REST URL which would allow querying for Entities using the Map names and values. For example, assume an Entity called "Customer" exists with a String attribute called "name" and another String attribute called "nvpairs", but "nvpairs" has the Map stereotype. Now ff an instance of Customer is created with name = "Kate" and nvpairs (key/value) = "age/34", then it should be possible to search - via the NBI - for all Customer Entities with name = "Kate" and an nvpair key = "age" with value = "34". http://localhost:8080/xmp_rest_nbi/model/data/Customer?name=Kate&nvpairs.age=34 Currently the additional nvpairs filter has no effect on the returned results. I suspect that Hibernate Criteria do not support Map queries which is why the NBI does not support this. But, this search is possible via HQL, going directly to the underlying tables supporting the Map. Conditions: Normal conditions.
Bug details contain sensitive information and therefore require a Cisco.com account to be viewed.
Bug Details Include
- Full Description (including symptoms, conditions and workarounds)
- Known Fixed Releases
- Related Community Discussions
- Number of Related Support Cases