forked from Impetus/kundera
-
Notifications
You must be signed in to change notification settings - Fork 0
JPQL
xamry edited this page Nov 8, 2012
·
5 revisions
Below table lists different JPA query language constructs and whether they are supported for given datastore in Kundera.
JPA-QL Clause | Cassandra | HBase | MongoDB | RDBMS |
SELECT | ✔ | ✔ | ✔ | ✔ |
UPDATE | ✔ | ✔ | ✔ | ✔ |
DELETE | ✔ | ✔ | ✔ | ✔ |
ORDER BY | X | X | ✔ | ✔ |
AND | ✔ | ✔ | ✔ | ✔ |
OR | X (Yes with Lucene) | ✔ | ✔ | ✔ |
BETWEEN | ✔ | ✔ | ✔ | ✔ |
LIKE | X (Yes with Lucene) | ✔ | ✔ | ✔ |
= | ✔ | ✔ | ✔ | ✔ |
> | ✔ | ✔ | ✔ | ✔ |
< | ✔ | ✔ | ✔ | ✔ |
>= | ✔ | ✔ | ✔ | ✔ |
<= | ✔ | ✔ | ✔ | ✔ |
- Kundera supports all above query operations/ clauses on primary key attributes (@Id) and column attributes (@Column).
- Queries that contain combination for primary key attribute and columns are supported.
Examples on using JPQL can be found here.