[teiid-issues] [JBoss JIRA] (TEIID-4380) ODatat 4 deep insert works for only a single expand level

Maximilián Košiarčik (JIRA) issues at jboss.org
Wed Jan 17 08:41:02 EST 2018


    [ https://issues.jboss.org/browse/TEIID-4380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13520113#comment-13520113 ] 

Maximilián Košiarčik commented on TEIID-4380:
---------------------------------------------

[~shawkins] To which level should the expand in insert work?
I am trying to insert the following entity:
{code:json}
 { "employee_id":1,
   "name": "President",
   "manager_id":1,
   "Employee_FK0": [
                    {"employee_id" : 2,
                     "name": "Vice-President",
                     "manager_id" : 1,
                     "Employee_FK0": 
                                   [
                                     {"employee_id" : 3,
                                      "name": "Manager",
                                      "manager_id" : 2
                                     }
                                   ]
                    }
                   ]
       
 }

{code}
And it gives me the following error: Employee_FKO can not be mapped as a property or an annotation.

> ODatat 4 deep insert works for only a single expand level
> ---------------------------------------------------------
>
>                 Key: TEIID-4380
>                 URL: https://issues.jboss.org/browse/TEIID-4380
>             Project: Teiid
>          Issue Type: Bug
>          Components: OData
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>             Fix For: 9.1, 8.12.x-6.4
>
>
> Inserting an entity with a graph more complicated than a single expand won't work as expected - in most cases an exception will be thrown after the inserts are performed / committed.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the teiid-issues mailing list