Hi,

i found this example 
<https://github.com/tinkerpop/frames/tree/master/src/test/java/com/tinkerpop/frames/domain>
 and 
have a question about adding an edge to the graph. Suppose i want to add a 
new person and a new project and the edge CreatedInfo between these to 
vertices. One way to do this is calling the method addCreated(pr) (Project 
pr = framedGraph.addVertex(2, Project.class);). The other possibility is to 
use framedGraph.addEdge(0, marko.asVertex(), pr.asVertex(), "created" 
,CreatedInfo.class);. The latter one has the advantage, that calling 
addEdge returns an object of CreatedInfo, so i am able to change the 
weight, for example. But calling addCreated(pr) does not seem to link to 
the CreatedInfo class. In fact, the type is null. Is it possible, to call 
addCreated(pr) such that the edge between the person and the project pr is 
of type CreatedInfo? (I am also getting the error message "WARNUNG: 
{db=animals} Requested command 'create edge type 'created' as subclass of 
'E'' must be executed outside active transaction: the transaction will be 
committed and reopen right after it. To avoid this behavior execute it 
outside a transaction" in Netbeans.)

-- 

--- 
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.

Reply via email to