Hi all,I am evaluating KODO JDO for a possibly gigantic scale implementation. I
am trying following code to get all available instances of the class
"Country" defined in package jdoeval.
Class target = Country.class;
Extent extent = pm.getExtent (target, true);
Query query = pm.newQuery (extent);
//query.compile ();
Collection result = (Collection) query.execute ();This piece of code code fails when it reaches query.execute(). Here is the
exception I am getting:-kodo.util.UserException: Unable to execute a query on type "class
jdoeval.Country". This class or interface is not persistent, and does not
have any persistent implementors.Now, I am 100% sure that my jdoeval.Country class is persistent, because I
have enhanced it every time I built my application using the KDO enhancer.
I have also stored some instances of class "Country" in MySQL database
using the same application.What could I be missing?FYI, I am using KDO as a plugin inside the Eclipse IDE.With thanks to all the team members for a great product.
解决方案 »
- 今天遇到一个面试题,关于StringBuffer,请教各位大侠
- 如何解决poi3.6版本导出excel中文乱码问题
- 用java做一个视频切割.求核心代码。
- JOptionPane.showMessageDialog()对于参数(null,boolean)不适用?
- 问过好多高手的,他们说没有遇到这种问题
- java怎么打包成别人能执行的程序啊?
- eclipse的SWT怎么使用???
- 请问各位高手 到北大青鸟培训机构当老师 与 到一个新高职职业学院当老师 那个选择更好??
- 现在Java的string底层到底用的UTF8还是UTF16?
- 想写个泛型的NullOrEmpty,不知可行否?
- 关于equals函数!
- 谁知道JVM将内存一共分成几个模块,每个部分都存储什么,尤其是方法或是静态方法都存储在那个部分。
Why don't you make a try of FastObject JDO? I think it's a bit easy to use, 'cause of it's GUI