|
|
Note that if you choose to use NeoDatis Criteria Queries then these are not portable
to any other datastore. Use JDOQL/JPQL for portability
|
NeoDatis provides its own "criteria" 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("Criteria", new CriteriaQuery(Employee.class, Where.ge("age", 32)));
List results = (List)q.execute();
So we are utilising the JDO API to generate a query and passing in the NeoDatis "CriteriaQuery".
|
|