Search code examples
orientdb

Is it possible to update the class for a record in OrientDB after creating the record?


I am creating Schema under Graph Database in OrientDB. I am creating a class Entity with few fields. Entity can be changed in the functional life cycle to StageOneEntity. So I created one more class StageOneEntity which extends Entity class.

If I create a record using class Entity, can I change the class to StageOneEntity afterwards?


Solution

  • No, the class is assigned on creation and never can be changed, unless you copy the object but it would have a different RID.