Hello everybody,
i use this method to create edges:
/**
*
*/
@Override
public void createEdge(String edgeName, String outID, String outClass,
String inID, String inClass, String property) {
logger.info("Create new Edge: " + edgeName + ":" + outClass + ":" + outID +
":" + inClass + ":" + inID + ":" + property);
Vertex outVertex = null;
Vertex inVertex = null;
try {
outVertex = this.graph.getVertices("m_id", outID).iterator().next();
} catch(NoSuchElementException e) {
logger.error("No such element: " + outID);
return;
}
try {
inVertex = this.graph.getVertices("m_id", inID).iterator().next();
} catch(NoSuchElementException e) {
logger.error("No such element: " + inID);
return;
}
Edge edge = this.graph.addEdge(null, outVertex, inVertex, edgeName);
if(property != null) {
edge.setProperty("value", property);
}
this.inkrementStatementCounter();
}
As you can see there is no part where i create a new edge class. I simply
create a new edge
but OrientDB is complaining about that i create a new edge class here:
2014-04-16 08:49:27 INFO GraphDAOOrientDB:205 - Create new Edge:
business.sponsorship.from:instance:m_0w5fbp8:type.date:type.date:2011-06
Apr 16, 2014 8:49:27 AM com.orientechnologies.common.log.OLogManager log
WARNING: Committing the active transaction to Committing the active
transaction to create the new type 'business.sponsorship.from'
as subclass of 'E'. The transaction will be reopen right after that. To
avoid this behavior create the classes outside the transaction.
To avoid this behavior do it outside the transaction
So where and why is OrientDB creating a new edge class? I just want to
create a new edge. I dont want to change the shema and i think i do it
right.
But maybe there is a mistake.
--
---
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.