How do I get an embedded Object in a select query using ObjectApi?

瀏覽次數:20 次
跳到第一則未讀訊息

John G

未讀,
2016年11月22日 上午8:47:262016/11/22
收件者:OrientDB
I am using ObjectApi to handle documents as objects.
Let's say we have a parent entity of class "Parent" and a child entity of class "Child" where child is an embedded object kept under Parent object.

I want to create a select query such as 
select child from Parent 
and have the child as instance of "Child" class.
Currently if you do this query what it returns is object Object and does not recognize the class of the Object.

Should this work like this? Any ideas?

alessand...@gmail.com

未讀,
2016年11月23日 凌晨3:57:072016/11/23
收件者:OrientDB
Hi,
could you post your code ?

Alessandro
回覆所有人
回覆作者
轉寄
0 則新訊息