Hi, Our use is that we have two classes EntityDefinition and Entity. We are managing EntityDefinition objects using the object API as the defition of this class is fixed. When saving an EntityDefinition we generate a class schema which we use to save Entity objects. We are saving the entity objects by creating Vertices and properties according to the definition.
However during a save action, we need to retrieve information about the schema. So while in a thread writing out an Entity as a vertex, we need to be able to call getters on the EntityDefinition object, but this fails when calling a contains method on a set, because it needs a connection to the database, which it expect on a threadlocal variable, but is of the wrong type (being set which saving the vertex I guess): java.lang.ClassCastException: com.orientechnologies.orient.core.db.document.ODatabaseDocumentTxPooled cannot be cast to com.orientechnologies.orient.object.db.ODatabasePojoAbstract at com.orientechnologies.orient.object.db.OObjectLazySet.getDatabase(OObjectLazySet.java:312) at com.orientechnologies.orient.object.db.OObjectLazySet.contains(OObjectLazySet.java:81) Is there a way around this problem? We are currently using 2.0 M1 (opsj4j orient is having issues with M2 at the moment). Thanks, Wouter -- --- 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.
