Google 应用引擎支持 JDBC 吗?

发布于 2024-09-05 03:07:00 字数 158 浏览 3 评论 0原文

我听说 Google App Engine[java] 不支持 JDBC 和 Hibernate。这是真的吗?
如果是,那么我们如何访问 Google App Engine 中的数据库。

另外,是否有任何[基本]示例应用程序可以帮助我了解如何在 GAE 中执行 CRUD 操作。

I have heard the Google App Engine[java] do not support JDBC and Hibernate. Is it true?
If yes then how do we access the database in Google App Engine.

Also, is there any [basic] sample application which can help me understand how to perform CRUD operations in GAE.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

芯好空 2024-09-12 03:07:00

不支持 JDBC 和 Hibernate: http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine

我目前也在学习应用引擎。以下是一些有用的资源和项目:

http://code.google.com /appengine/docs/java/overview.html

http://groups.google .com/group/google-appengine-java

Springsource 工具套件随 Google Plugin for Eclipse (GPE) 一起提供:
http://www.springsource.com/products/sts

一个重要的 Web 应用程序示例( spring mvc/gwt/jsf + JDO + spring IOC、服务层、DAO、DTO、测试套件):
http://code.google.com/p/swagswap/

JDBC and Hibernate are not supported: http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine

I'm currently learning app engine too. Here's some resources and projects that have been helpful:

http://code.google.com/appengine/docs/java/overview.html

http://groups.google.com/group/google-appengine-java

Springsource Tool Suite is shipped with the Google Plugin for Eclipse (GPE):
http://www.springsource.com/products/sts

A non-trivial web app example (spring mvc/gwt/jsf + JDO + spring IOC, service layer, DAOs, DTOs, test suite):
http://code.google.com/p/swagswap/

伊面 2024-09-12 03:07:00

Google 对 GAE 应用程序使用自己的数据存储类型。以下是有关其工作原理的文档:http://code.google .com/appengine/docs/java/datastore/overview.html。该页面有其工作原理的示例。

Google uses their own type of Datastore for GAE apps. Here is there documentation for how it works: http://code.google.com/appengine/docs/java/datastore/overview.html. That page has examples of how it works.

べ映画 2024-09-12 03:07:00

AppEngine 不使用关系数据库。您应该认真阅读有关 AppEngine 工作原理的文档,从这个面向 Java 的概述开始AppEngine

AppEngine 通过利用 Google 式的基础设施兑现了其可扩展性承诺。如果您希望使用更传统的堆栈,那么 Amazon EC2

AppEngine doesn't use a relational database. You should really read the docs about how AppEngine works, starting with this Java-oriented overview of AppEngine.

AppEngine delivers on its scalability promise by leveraging Google-style infrastructure. If you're looking to use a more traditional stack, you'll probably be better off with Amazon EC2.

迎风吟唱 2024-09-12 03:07:00

是的,确实如此。只要 GAE 数据存储不是基于 RDBMS(而是某种 NoSQL 大表存储),JDBC 驱动程序就无法在那里工作。
如果您想通过 ActiveRecord ORM(类似 Hibernate)使用 GAE 存储,您可能对 JPA 或 JDO 感兴趣 - 两者都受支持。或者,您可以直接使用低级 API。

有关详细信息,您可以参阅数据存储区 Java API 概述

Yes, that's true. JDBC drivers won't work there, as long as GAE datastore is not based on RDBMS (it's rather some kind of NoSQL big-table storage).
If you want to work with GAE storage via ActiveRecord ORM (Hibernate-like), you may be interested in JPA or JDO - the both are supported. Alternatively, you can directly use low-level API.

For more information you may refer to Datastore Java API Overview.

你与清晨阳光 2024-09-12 03:07:00

在可扩展的 Web 应用程序中存储数据可能很棘手。

您必须使用他们的数据存储 API。
http://code.google.com/appengine/docs/java/入门/usingdatastore.html

Storing data in a scalable web application can be tricky.

You have to use their datastore API.
http://code.google.com/appengine/docs/java/gettingstarted/usingdatastore.html

左岸枫 2024-09-12 03:07:00

有一个早期的第 3 方项目用于为 App Engine 非相关数据存储区构建 JDBC 驱动程序:

http://www.jiql.org/xwiki/bin/view/Main/

There is an early-stage 3rd party project to build a JDBC driver for the App Engine nonrel datastore:

http://www.jiql.org/xwiki/bin/view/Main/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文