Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 hbase 和 JDO 很幼稚。我试图使用
Query q = pm.newQuery(MyClass.class, "id == " + taskId); List<MyClass> taskList = (List<MyClass>)q.execute();
但令我失望的是,我收到的清单是空白的。尽管参数中的 taskId 已经存在。
任何形式的帮助都会非常可观。
提前致谢!!
如果通过 id 获取对象,那么调用会更有意义
pm.getObjectById(...)
如果使用查询,查看日志是正常的
尝试
taskList = (List) pm.detachCopy(taskList);
在你的代码之后