Hi,
I'm using kundera 2.10, along with HBASE
Issue is I have collection of ID (here in the form of List).
So need to get all the details in db for the list of ID's so planned to use IN operator.
Here is the code:
List names = Arrays.asList("00969425", "00969442");
String jpql = "Select t from Data t where t.ID IN :names";
Query query = entityManager.createQuery(jpql,Data.class);
query.setParameter("names", names);
List rows = query.getResultList();
for(Data row :rows)
{
String rowID = row.getParentRowID();
}
Here is the exception it say IN operator is not supported
SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
java.lang.UnsupportedOperationException: Condition IN is not suported in hbase!
How to approach the above issue?.
Please need your valuable thoughts on the same.
Thanks
jeevitesh
Hi,
I'm using kundera 2.10, along with HBASE
Issue is I have collection of ID (here in the form of List).
So need to get all the details in db for the list of ID's so planned to use IN operator.
Here is the code:
List names = Arrays.asList("00969425", "00969442");
String jpql = "Select t from Data t where t.ID IN :names";
Query query = entityManager.createQuery(jpql,Data.class);
query.setParameter("names", names);
List rows = query.getResultList();
Here is the exception it say IN operator is not supported
SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
java.lang.UnsupportedOperationException: Condition IN is not suported in hbase!
How to approach the above issue?.
Please need your valuable thoughts on the same.
Thanks
jeevitesh