Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Hibernate be used as the JPA provider in Google App Engine

Can Hibernate 3.5.x be used as the JPA provider instead of the default provider in the latest version of Google App Engine (1.3.2)

like image 615
Joe Avatar asked Mar 26 '10 12:03

Joe


People also ask

What is JPA in cloud computing?

Java Persistence API (JPA) is a standard interface for accessing databases in Java, providing an automatic mapping between Java classes and database tables. There is an open-source plugin available for using JPA with Datastore, and this page provides information on how to get started with it.

Why do we use JPA in Java?

JPA stands for Java Persistence API (Application Programming Interface). It was initially released on 11 May 2006. It is a Java specification that gives some functionality and standard to ORM tools. It is used to examine, control, and persist data between Java objects and relational databases.

What is JPA and why do we need it?

A JPA (Java Persistence API) is a specification of Java which is used to access, manage, and persist data between Java object and relational database. It is considered as a standard approach for Object Relational Mapping. JPA can be seen as a bridge between object-oriented domain models and relational database systems.

How does a JPA work?

JPA permits the developer to work directly with objects rather than with SQL statements. The JPA implementation is typically called persistence provider. The mapping between Java objects and database tables is defined via persistence metadata.


1 Answers

No, Hibernate can't be used with Google App Engine. Please see Will it play with App Engine.

You cannot currently use Hibernate directly. The differences between the App Engine datastore and SQL were too great to get the standard Hibernate up and running under App Engine. App Engine does support JDO and JPA, so you may be able to convert your Hibernate code to use one of these ORM interfaces.

like image 156
Taylor Leese Avatar answered Sep 23 '22 00:09

Taylor Leese