@neo(traverser=RoleMembers.class) public Collection<User> members;
construct in Role.java. There, you can basically provide any traversal
that fits the bill. Would that be applicable?
Cheers,
/peter neubauer
COO and Sales, Neo Technology
GTalk: neubauer.peter
Skype peter.neubauer
Phone +46 704 106975
LinkedIn http://www.linkedin.com/in/neubauer
Twitter http://twitter.com/peterneubauer
http://www.neo4j.org - Your high performance graph database.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
I normally used a simple index to get a starting node, and then
traversers to get to the data I need. When I found queries that were
difficult, I modified the graph to make them easy...putting edges
where none existed before to allow for simpler traversal. I've been
trying to come up with a more articulate way of describing this, but
essentially queries can be "precomputed" by anticipating traversal
patterns and placing edges where needed. For some people this is
uncomfortable because we are creating more data than what would be
necessary with RDBMS, however, that's typical for nosql data
scenarios.
If you have some ticklers or types of queries you think jo4neo should
add let us know. I can imagine some kind of bridge to creating
complex Lucene queries might be useful.
Taylor