I talked to the orientdb sql website and I was wondering if there is a way to update the vertex edge along with some data on it.
Assuming I have the following data: Top: face, room Edge: inside (from person to number)
sort of:
UPDATE Persons SET phone=000000, out_Inside=(
select @rid from Rooms where room_id=5) where person_id=8
obviously this does not work. This throws an exception:
Error: java.lang.ClassCastException: com.orientechnologies.orient.core.id.ORecordId cannot be cast to com.orientechnologies.orient.core.db.record.ridbag.ORidBag
I tried looking at sources in github to find the syntax for a bag with 1 element, but could not find (found%, but there seems to be no serialization for SQL).
(1) Is there a way to do this? how do i update the connection? Is there a way, or am I forced to create a new edge and delete the old one?
(2) , , , . , LINK. , , , , . , :
https://groups.google.com/forum/#!topic/orient-database/xXlNNXHI1UE
3 , Lvc @, :
"The suggested way is to always create an edge for relationships"
, , (1). .
p.s.
, . , . , , , ( ), .
()
(1) . Lvca , !
(2) - -