Hi all,

I have created a vertex type called "Area", as follows:

def factory = new OrientGraphFactory("memory:db1").setupPool(1, 10);
factory.getDatabase(true, true);
OrientGraphNoTx graph = factory.getNoTx();
OrientVertexType areaType = graph.createVertexType("Area");

But when I try to execute a sql query, like:

def db = factory.getTx()
def osql = "select from area"
def query = new OSQLSynchQuery(osql)
def areas = db.command(query).execute()

I get the following exception:

Caused by: 
com.orientechnologies.orient.core.exception.OCommandExecutionException: 
Class 'AREA' was not found in current database
at 
com.orientechnologies.orient.core.sql.filter.OSQLTarget.extractTargets(OSQLTarget.java:262)
at 
com.orientechnologies.orient.core.sql.filter.OSQLTarget.<init>(OSQLTarget.java:67)
... 39 more

Anybody has any clue on how to solve that issue?

Regards, Lucas Lira Gomes.

-- 

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