Here's a simple test case :
String SUFFIX = "1";
ODatabaseDocumentTx db = new ODatabaseDocumentTx(
"remote:localhost/CBWeb").open("admin", "admin");
OSchema schema = db.getMetadata().getSchema();
ODatabaseRecordThreadLocal.INSTANCE.set(db);
OClass taxClass = schema.createClass("Tax");
OClass variableTaxClass =
schema.createClass("VariableTax").setSuperClass(taxClass);
taxClass.createProperty("code", OType.STRING);
variableTaxClass.createProperty("rate", OType.DECIMAL);
int clusterId;
clusterId = db.addCluster("Tax" + SUFFIX, CLUSTER_TYPE.PHYSICAL);
taxClass.addClusterId(clusterId);
clusterId = db
.addCluster("VariableTax" + SUFFIX, CLUSTER_TYPE.PHYSICAL);
variableTaxClass.addClusterId(clusterId);
ODocument taxDocument = null;
taxDocument = new ODocument(variableTaxClass);
taxDocument.field("rate", 123);
taxDocument.field("code", "TESTCODE");
taxDocument.save("VariableTax" + SUFFIX);
If I query the db with : *select from Tax *
I get no result, I was expecting all records from VariableTax(and its
clusters) to appear.
--
---
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.