Property Path (the "path" or location in the file to find the "property" that will be persisted) is currently supported for JSON as follows:
For example:
{
"operation": "CreatePersistenceTopic",
"persistenceTopic": "Test41Topic",
"tableName": "Test41Table",
"mapOfPropertiesToFields":
[
{
"propertyPath": "person.address[0].street",
"fieldName": "firstStreet",
"fieldType": "VARCHAR"
},
{
"propertyPath": "person.address[last].street",
"fieldName": "mostRecentStreet",
"fieldType": "VARCHAR"
},
{
"propertyPath": "person.address[0].city",
"fieldName": "firstCity",
"fieldType": "VARCHAR"
},
{
"propertyPath": "person.address[last-1].zip",
"fieldName": "penultimatePostalCode",
"fieldType": "VARCHAR"
}
]
}
Sample queries using the JSON format above:
"SELECT COUNT(*) FROM Test41Table WHERE firstCity = 'Toronto'"
"SELECT COUNT(*) FROM Test41Table WHERE firstStreet = '2112 Syrinx Ave.'"
"SELECT COUNT(*) FROM Test41Table WHERE mostRecentStreet = '2012 Clockwork Crossing'"