English 中文(简体)
Can I use JPA 2.0 with Google App Engine?
原标题:

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

最佳回答

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.

问题回答

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.

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

You can find out how to set it up here.

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.





相关问题
How to make logging.debug work on Appengine?

I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...

gqlQuery returns object, want list of keys

Is there a way to convert the GqlQuery object to an array of keys, or is there a way to force the query to return an array of keys? For example: items = db.GqlQuery("SELECT __key__ FROM Items") ...

Integrating Google AppEngine with a Thick Client

I want to make a multi-user client-server solution with Java Swing thick client as a front-end and Google AppEngine (Java one) as a back-end. The problem is that GAE provides only web-based forms for ...

sorl.thumbnail : thumbnail is not a valid tag library?

I am trying to install sorl.thumbnail but am getting the following error message: thumbnail is not a valid tag library: Could not load template library from django.templatetags.thumbnail, No module ...

热门标签