问题
Can I use JPA 2.0(e.g EclipseLink) with Google App Engine?
回答1:
The DataNucleus plugin to the Google AppEngine supports both the JDO and JPA API to access Google AppEngine Datastore infrastructure. Currently this implementation seems to support JPA1 only.
回答2:
No, you can't use any implementation on GAE and they only support JPA 1.0. Quoting Using JPA with App Engine:
The App Engine Java SDK includes an implementation of JPA 1.0 for the App Engine datastore. The implementation is based on DataNucleus Access Platform.
回答3:
"Experimental" support for JPA 2.0 is now available in GAE.
You can find out how to set it up here.
回答4:
Now, in version 1.7.1 of GAE SDK you can use JPA 2 or JDO 3, fully supported. See release notes. Or set up using this information.
来源:https://stackoverflow.com/questions/2045148/can-i-use-jpa-2-0-with-google-app-engine