Hi, I have a certain data predefined model which i need to use to create a schema in the Document database.
I'm planning to use Orient in hybrid/mixed mode i.e.e schema+schema-less How do i quickly define the schema for the DB. I found in the documentation i have to use ODatabaseDocumentTx functions getMetadata().getSchema() to define individual classes and their properties via the OClass <http://orientdb.com/javadoc/latest/com/orientechnologies/orient/core/metadata/schema/OClass.html> object. Is there a way i can do scan a package and auto create the models? Can i use the below method safely as object Db is just a wrapper over the document db? OObjectDatabaseTx db = new OObjectDatabaseTx( "remote:localhost:2424/DB").open("root", "password"); db.getEntityManager().registerEntityClasses( "com.demo.persistence.model"); Regards, Rohitdev -- --- 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.
