Note that if you choose to use NeoDatis Native Queries then these are not portable
to any other datastore. Use JDOQL/JPQL for portability
NeoDatis provides its own "native" query interface, and if you are using the JDO API you can
utilise this for querying.
To take a simple example
// Find all employees older than 31
Query q = pm.newQuery("Native", new NativeQuery()
public boolean match(Object e)
if (!(e instanceof Employee))
return ((Employee)e).getAge() >= 32;
public Class getObjectType()
List results = (List)q.execute();
So we are utilising the JDO API to generate a query and passing in the NeoDatis "NativeQuery".