Hi guys
With OrientDB 1.7-rc1, I can't for the life of me figure out how to load an
embeddedset<https://github.com/orientechnologies/orientdb/wiki/Concepts#1-n-and-n-m-embedded-relationships>from
an ODocument in Scala, even though I think i have stored the set
correctly. I stored objects implementing OSerializableStream in a HashSet
with the ODocument, and it looks alright when doing SQL selects on the
embeddedset. However, when I load the set back from the ODocument, it's
represented as a collection of strings, i.e. there's no deserialization.
What I've tried is basically this, given that version is an ODocument and
the type contained in the embeddedset ("dependencies") is Dependency:
val deps =
version.field[OTrackedList[Dependency]]("dependencies").asScala.toSeq
val dep: Dependency = deps.head
The final statement throws this exception: *[ClassCastException:
java.lang.String cannot be cast to models.Dependency]*. How can I read the
"dependencies" field properly deserialized to a Set[Dependency]?? Please
help!
Thanks,
Arve
--
---
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.