Just tested the issue on 2.0.9 and 2.1-rc3, *still not fixed yet*! 
According to the ticket #4057, it should be fixed in 2.0.9 and 2.1-rc2. 

On Tuesday, May 5, 2015 at 8:21:51 AM UTC+2, Dong Jin wrote:
>
>
> Fix should be provided in v2.1-rc2, according to 
> https://github.com/orientechnologies/orientdb/issues/4057
>
>
> On Tuesday, April 28, 2015 at 4:17:55 PM UTC+2, Dong Jin wrote:
>>
>> For embedded documents, the insert and update statements are different. 
>> While insert copes with a plain quasi-JSON object (single-quotes suffice, 
>> not necessarily double-quotes, thus quasi-JSON), does update not work with 
>> this plain JSON type. The additional specs @class and @type must be added. 
>> The following statements can be used to illustrate the issue:
>>
>> create class Address
>> create property Address.street String
>> create property Address.city String
>>
>> create class Client
>> create property Client.name String
>> create property Client.phones embeddedSet String
>> create property Client.addresses embeddedList Address
>>
>> insert into client set name = 'James Bond', phones = ['1234', '34567'], 
>> addresses = [{'city':'Shanghai', 'zip':'3999'}, {'city':'New York', 
>> 'street':'57th Ave'}]
>> update client add addresses = [{'city':'London', 'zip':'67373'}] # not 
>> working
>> update client add addresses = 
>> [{'@type':'d','@class':'Address','city':'London', 'zip':'67373'}] # works
>>
>> BTW: how to remove or update one or multiple elements in the embedded 
>> collection, say how to update the city of Shanghai, and how to remove city 
>> of New York for the record?
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to