pre-1.7rc2 (and maybe 1.7rc1 I'm not sure)
OrientGraphBase graphNoTx = new OrientGraphNoTx(url);
OrientGraphBase graphTx = new OrientGraph(url);

post-1.7rc2
OrientGraphFactory factory = new OrientGraphFactory(url, user, password)
OrientGraphBase graphNoTx = factory.getNoTx();
OrientGraphBase graphTx = factory.get();

Do your schema changes first using the NoTx graph.  After that, just use 
the transactional graph as usual.  You may have cases where you are making 
a decision about making schema changes during a transaction.  If that's the 
case, you should re-organize the code so that you can make those decisions 
outside of the transaction (or apply them outside of the transaction).

-- 

--- 
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.

Reply via email to