Can i use "Order by" and "limit" keyword in JPQL when using kundera 2.3 + cassandra #204

Closed
zhouhero opened this Issue Mar 8, 2013 · 1 comment

Comments

Projects
None yet
3 participants

zhouhero commented Mar 8, 2013

i am creating a queue table, my table is :

create table queue (
id int,
time_id uuid,
message varchar,
put_terminal_ip varchar,
get_terminal_ip varchar,
bak varchar,
primary key(id, time_id)

);

can i use "Order by" and "limit" keyword in JPQL when using kundera 2.3 + cassandra
like fellow?

"select c from QueueEntity c where c.key.Id =1 and c.getTerminalIp ='' order by c.timeId limit 1 "

Collaborator

mevivs commented Mar 8, 2013

Hi,
I have added this support for composite key, please refer:
#194

Order by is not supported via JPQL. We will try to get it working 2.5

-Vivek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment