mardi 29 avril 2014

OrientDB - update link as soon as record is inserted


Vote count:

0




Is there a way to force OrientDB database create links automcatically, just as new record is inserted. I.e. if I have classes (like in tutorial):



Post (_id, text)
Comment (_id, post_id, text)


Then if I insert (create) new record Comment with given post_id - is there a way to force database automatically update corresponding links?


I'm interested for both java solutions and ones relying on database itself.


As for now I have not found anything better than execute create link ... command after each insert.



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire