Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples query at Java [moved] #147

Closed
lvca opened this issue Dec 10, 2012 · 0 comments
Closed

Examples query at Java [moved] #147

lvca opened this issue Dec 10, 2012 · 0 comments

Comments

@lvca
Copy link
Member

lvca commented Dec 10, 2012

This is Issue 147 moved from a Google Code project.
Added by 2010-11-15T11:34:21.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Done).

Original labels: Type-Defect, Priority-Medium

Original description

Hi All.
I have got java application.  This is application uses Relational DBMS - PostgreSQL. It has got hierarchical structure data. Relational DBMS is bad makes recursive query, so I want to replace Relational DBMS  on NoSQL database.I estimated a OrientDB and I think that is best choice for this.
I have got few question.
1. You show example as make query
List<ODocument> result = db.getUnderlying().command(
  new ONativeSynchQuery<ODocument, OQueryContextNativeSchema<ODocument>>(&quot;Person&quot;,
                                                new OQueryContextNativeSchema<ODocument>()) {
    @Override
    public boolean filter(OQueryContextNativeSchema<ODocument> iRecord) {
      return iRecord.field(&quot;city&quot;).field(&quot;name&quot;).eq(&quot;Rome&quot;).and().field(&quot;name&quot;).like(&quot;G%&quot;).go();
    };
  }).execute();
But it don't work. My IDE show that is mistake. How I can make this query?
2. How I can make recursive query for graph?

PS Sorry for my bad English.
Thanks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant