config = Db4oEmbedded.newConfiguration();
config.common().activationDepth(depth);
config.common().updateDepth(depth);
config.common().objectClass(type).objectField(key).indexed(true);
config.common().objectClass(ContainerArvores.class).objectField("id").indexed(true);
config.common().add(new UniqueFieldValueConstraint(type, key));
// config.common().add(new UniqueFieldValueConstraint(Arvore.class, key));
// config.common().add(new UniqueFieldValueConstraint(ContainerArvores.class, key));
config.common().objectClass(type).cascadeOnUpdate(true);
config.common().objectClass(type).cascadeOnActivate(true);
config.common().objectClass(type).cascadeOnDelete(true);