How to modify a Set<ODocument> field in a record?
the code:
List<ODocument> resultList = db.query(new
OSQLSynchQuery<ODocument>("SELECT username, roleSet FROM User
WHERE username = 'Tomek'"));
System.out.println("resultList_0: " + resultList_0);
System.out.println("resultList_0: " + resultList_0.field("roleSet"));
Returns:
resultList_0: #-2:1{username:Tomek,roleSet:[2]} v0
resultList_0: [#10:0=#10:0,#10:1=#10:1]
#10:0 and #10:1 are records in Role class.
How to add a new record to this set, or delete one from it?
I create a new one:
ODocument rola1 = new ODocument("Role");
rola1.field("role", "myRole3");
db.save(rola1);
but can't add it.
--
---
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.