Can I use JPA 2.0 with Google App Engine?

2019-06-26 09:38发布

Can I use JPA 2.0(e.g EclipseLink) with Google App Engine?

4条回答
Bombasti
2楼-- · 2019-06-26 09:49

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楼-- · 2019-06-26 09:52

"Experimental" support for JPA 2.0 is now available in GAE.

You can find out how to set it up here.

查看更多
Root(大扎)
4楼-- · 2019-06-26 10:00

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.

查看更多
Rolldiameter
5楼-- · 2019-06-26 10:05

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.

查看更多
登录 后发表回答