Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JDO vs JPA for Java on Google App Engine

I want to develop my project on Google App Engine with Struts2. For the database I have two options JPA and JDO. Will you guys please suggest me on it? Both are new for me and I need to learn them. So I will be focused on one after your replies.

Thanks.

like image 963
Tahir Avatar asked Sep 13 '09 16:09

Tahir


People also ask

What is the difference between JPA and JDO?

JPA persists java objects to relational data via ORM, while JDO is more general specification for java object persistence. So using JDO will give you more freedom in storage implementation options for your objects. Show activity on this post. JPA is the leading java standard for persistence.

Why do we need JPA in Java?

The Java™ Persistence API (JPA) provides a mechanism for managing persistence and object-relational mapping and functions since the EJB 3.0 specifications. The JPA specification defines the object-relational mapping internally, rather than relying on vendor-specific mapping implementations.

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.


2 Answers

The GAE/J google group has several posts about this very thing. I'd do a search on there and look at people's opinions. You will get a very different message to the opinions expressed above. Also focus on the fact that BigTable is not an RDBMS. Use the right tool for the job

like image 73
DataNucleus Avatar answered Sep 20 '22 22:09

DataNucleus


JPA is Sun's standard for persistence, JDO is IMHO dying (actually, it's dead but still moving). In other words, JPA seems to be a better investment on the long term. So I guess I'd choose JPA if both were new to me.

like image 43
Pascal Thivent Avatar answered Sep 23 '22 22:09

Pascal Thivent