[ 
https://issues.apache.org/jira/browse/OLINGO-515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14294972#comment-14294972
 ] 

Adith Shenoy commented on OLINGO-515:
-------------------------------------

Hi Chandan,

Deep insert using JSON does not work. Please refer the below request:

{
    "CustomerID": "ASDFG",
    "CompanyName": "Contoso Widgets",
    "Address": {
        "Street": "58 Contoso St",
        "City": "Seattle"
    },
    "Orders": [
        {
            "OrderID": 1,
            "ShippedDate": "/Date(872467200000)/"
        },
        {
            "OrderID": 2,
            "ShippedDate": "/Date(875836800000)/"
        }
    ]
}


Also linking multiple child entities with the parent entity using JSON request 
is not working as shown below. 

{
    "__metadata": {
        "uri": "Customers('ASDFG')"
    },
    "CustomerID": "ASDFG",
    "CompanyName": "Contoso Widgets",
    "Address": {
        "Street": "58 Contoso St",
        "City": "Seattle"
    },
    "Orders": [
        {
            "__metadata": {
                "uri": "Order(1)"
            }
        },
        {
            "__metadata": {
                "uri": "Order(2)"
            }
        }
    ]
}

Can you please look into these issues? 

> Deep insert using JSON is not working with odata-jpa
> ----------------------------------------------------
>
>                 Key: OLINGO-515
>                 URL: https://issues.apache.org/jira/browse/OLINGO-515
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-jpa
>    Affects Versions: V2 2.0.1
>            Reporter: Fadhly
>            Assignee: Chandan V.A
>
> hello. i created a project using the olingo-odata2-sample-cars-jpa-archetype. 
> tried deep insert a car with driver using json, only car is inserted.
> I tried using xml for the same scenario it works fine.



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

Reply via email to