Hi,
I am trying to read a data from nested document using APIs.
Here is my testing schema:
- Agent (Object)
└ name
└ birthday
└ birthPlace
└ gender
* └ education(Object -> 'Education')*
* └ highSchool*
* └ university*
└ experiences
I can easily get properties' value except nested one like in 'Education'.
for(Vertex v : graph.getVertices()){
Agent a = new Agent();
a.setName(v.getProperty("name"));
a.setBirthday(formatter.format(v.getProperty("birthday")));
a.setBirthPlace(v.getProperty("birthPlace"));
a.setGender((v.getProperty("gender")) != null ? "남자" : "여자");
a.setAgentCategory(v.getProperty("agentCategory"));
a.setJob(v.getProperty("job"));
*a.setEducation(v.getProperty("education");*
agentList.add(a);
}
I am getting following error message:
org.springframework.web.util.NestedServletException:
Request processing failed; nested exception is
java.lang.ClassCastException:
com.tinkerpop.blueprints.impls.orient.OrientVertex cannot be cast to
form.Education
Can anyone help me out from here?
Best,
Kiheung
--
---
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.