0

I am pretty naive to hbase and JDO. I was trying to use

Query q = pm.newQuery(MyClass.class, "id == " + taskId);
List<MyClass> taskList = (List<MyClass>)q.execute();

But to my disappointment the list I am receiving is blank. although the taskId in the argument is already present.

Any kind of help would highly appreciable.

Thanks in advance!!

devsri
  • 6,173
  • 5
  • 32
  • 40

2 Answers2

0

try

taskList = (List) pm.detachCopy(taskList);

after your code

Sumit Prajapati
  • 91
  • 1
  • 12
0

If fetching an object by id then would make way more sense to call

pm.getObjectById(...)

and if using a query, it would be normal to look at the log

DataNucleus
  • 15,497
  • 3
  • 32
  • 37