database.close();
}
@Test
public void queryProjectionObjectLevel() {
ODatabaseObjectTx db = new ODatabaseObjectTx(url);
db.open("admin", "admin");
List<ODocument> result = db.query(new OSQLSynchQuery<ODocument>(" select nick, followings, followers from Profile "));
Assert.assertTrue(result.size() != 0);
for (ODocument d : result) {
Assert.assertNull(d.getClassName());
Assert.assertEquals(d.getRecordType(), ODocument.RECORD_TYPE);
}
db.close();
}