Hi there,
Trying to query DB using this function
public Iterable<Vertex> findCollectionVertex(Collection c){
OSQLSynchQuery<ODocument> query = new OSQLSynchQuery<>("select from
(traverse out_HAS from (select from Case where name = :cname ) while $depth
<= 1) where name = :name");
Map<String,Object> params = new HashMap<>();
params.put("cname", c.getCase().getName());
params.put("name", c.getName());
Iterable<Vertex> list = graph.command(query).execute(params);
return list;
}
* list *is always empty. However I run the same query in Orient Studio with
parameters in query
select from (traverse out_HAS from (select from Case where name = 'demo' )
while $depth <= 1) where name = 'telnet_cat_emial_list.pcap'
and have expected results
@rid@version@classnamein_HAS#13:3<http://localhost:2480/studio/index.html#/database/ePersona/browse/edit/13:3>
2Collectiontelnet_cat_emial_list.pcap[1]
Any ideas why this can happen !?
-Andrey
--
---
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/groups/opt_out.