Can I use JPA 2.0 with Google App Engine?

狂风中的少年 提交于 2019-12-10 17:34:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!