问题描述
Google刚刚推出了适用于Google App Engine的JDO 3.0(使用DataNucleus 2.0),并且我想使用它,因为它可以方便地支持无主关系。我一直在尝试几天,但我无法弄清楚如何将它与Google Eclipse插件一起使用。我发现此网页,但我的项目文件夹没有build.xml文件。我尝试创建一个单独的项目并转移所有代码,但新项目没有JDO 3.0,也没有build.xml文件。任何帮助我非常感激。
我刚安装了新的Eclipse和GPE(因为升级我的eclipse完全破坏了它,其他选项)。
您是否更新您的GPE版本?我的是:
Google Plugin for Eclipse 4.2 3.1.0.v201208080121-rel-r42
之后,您应该能够通过在Google / App Engine下的项目属性中选择Datanucleus JDO / JPA v2来切换到JDO 3.0。据我所知,GPE v2实际上是通过查看复制到输出目录的jar的JDO v3.0。我的是/war/WEB-INF/lib/datanucleus-api-jdo-3.0.7.jar
Google just came out with JDO 3.0 (which uses DataNucleus 2.0) for Google App Engine, and I want to use it, since it conveniently supports unowned relationships. I've been trying for days, but I can't figure out how to use it with the Google Eclipse plugin. I've found this web page https://developers.google.com/appengine/docs/java/datastore/jdo/overview-dn2, but my project folder doesn't have a build.xml file. I tried creating a separate project and transferring all my code, but the new project didn't have JDO 3.0, nor did it have a build.xml file.
Any help would be much appreciated.
I just installed the new Eclipse and GPE (since upgrading my eclipse completely destroyed it, I had no other option).
Did you update your version of GPE? Mine is:
Google Plugin for Eclipse 4.2 3.1.0.v201208080121-rel-r42
After that, you should be able to switch to JDO 3.0 by selecting Datanucleus JDO/JPA v2 in the project properties under Google / App Engine. As far as I understand, the GPE v2 is actually JDO v3.0 by looking at the jars that are copied to the output directory. Mine is /war/WEB-INF/lib/datanucleus-api-jdo-3.0.7.jar
这篇关于Google App Engine JDO 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!