Stefan

I found the same message during some tests. It means you are trying to save 
a class into a cluster but you have not registered the cluster with that 
class.

If you are using the Graph API you should do something like:

OrientVertexType myVertex = this.graphDbNoTx.createVertexType("MyVertex");
myVertex.addCluster("MyCluster");

In case you are using the Document API:

int clusterId = this.db.addCluster("MyCluster", CLUSTER_TYPE.MEMORY); 
//$NON-NLS-1$
OClass myClass = this.db.getMetadata().getSchema().createClass("MyClass"); 
//$NON-NLS-1$
myClass.addClusterId(clusterId);


On Tuesday, September 2, 2014 10:09:36 PM UTC-3, [email protected] 
wrote:
>
>
> com.orientechnologies.orient.core.exception.OSchemaException: Record saved 
> into cluster order should be saved with class null but saved with class 
> Order
>
> regards,
>   -Stefan
>
>

-- 

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