I'd like to know if it is possible to create a Vertex that requires an edge in order to be created.

31 views
Skip to first unread message

yashpal singla

unread,
Jul 14, 2016, 11:27:45 AM7/14/16
to OrientDB

I'd like to know if it is possible to create a Vertex that requires an edge in order to be created. 

For example, I want to create an Invoice class that has a HasCustomer edge which points to Person. 

I want the HasCustomer edge to be mandatory in order to create the Invoice. 

You cannot create the Invoice unless you have the HasCustomer edge.

I know we can have a link to Person, but there is no referential integrity. I can delete the Person and the Invoice will simply end up with a link to a customer that is non-existent.

SavioL

unread,
Jul 15, 2016, 5:01:42 AM7/15/16
to OrientDB
Hi, i answered you in stack overflow.
Reply all
Reply to author
Forward
0 new messages