Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine JDO 3

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.

like image 954
Jeremy Avatar asked Apr 07 '12 21:04

Jeremy


1 Answers

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

like image 133
crazystick Avatar answered Sep 24 '22 05:09

crazystick