You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metamodel.apache.org by "Joao Boto (JIRA)" <ji...@apache.org> on 2014/11/12 15:00:35 UTC

[jira] [Updated] (METAMODEL-96) mapping multiple tables based on a single JSON file

     [ https://issues.apache.org/jira/browse/METAMODEL-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joao Boto updated METAMODEL-96:
-------------------------------
    Summary: mapping multiple tables based on a single JSON file  (was: complex JSON table mapping)

> mapping multiple tables based on a single JSON file
> ---------------------------------------------------
>
>                 Key: METAMODEL-96
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-96
>             Project: Metamodel
>          Issue Type: New Feature
>            Reporter: Joao Boto
>
> when we have a complex json like:
> a customer that has a list of properties, each property have a list of descriptions and a list of images, in addition to another objects.
> would be interesting to be able to map it as if it has to do with the xml.
> here the sample:
> https://wiki.apache.org/metamodel/examples/XmlTableMapping
> {code}
> {
>   "custumerCode": "xpto",
>   "listing": [
>       {
>         "propertyCode": "1",
>         "propertyReference": "1-1",
>         "address" : {
>         	"streetname": "plaza de las cortes"
>         },
>         "images" : [
>                     { "url": "http://somefoto1.jpg", "tag": "bath"},
>                     { "url": "http://somefoto2.jpg", "tag": "kitchen"}
>         ],
>         "descriptions" : [
>                     { "language" : "en", "comment": "some text"},
>                     { "language" : "de", "comment": "another text"}
>         ]
>       },
>       {
>           "propertyCode": "2",
>           "propertyReference": "2-2",
>           "address" : {
>           	"streetname": "plaza de las cortes"
>           },
>           "images" : [
>                       { "url": "http://somefoto1.jpg", "tag": "bath"},
>                       { "url": "http://somefoto2.jpg", "tag": "kitchen"}
>           ],
>           "descriptions" : [
>                       { "language" : "en", "comment": "some text"},
>                       { "language" : "de", "comment": "another text"}
>           ]
>         }
>   ]
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)