views:

287

answers:

2

I am getting into App Engine development right now with Java and I am wondering what people think about using the low level api instead of JPA? I understand that JPA may make the solutions more portable in the future but I don't anticipate taking my code anywhere else.

Is it ok to use the low level api instead of JPA? I'm interested in hearing the pros/cons of each method.

A: 

Why choose one or the other? I would choose a higher level abstraction that's documented (JPA or JDO) and the low-level API where the high level abstraction falls short.

Keep in mind that the API still seems to be a work in progress so if you choose the low level API exclusively, be prepared to roll with the changes.

I found JDO to be easiest to work with and haven't had to resort to using the low-level API yet.

digitalsanctum
+2  A: 

I woud perfer a clear API like jdo over direct use of datastore There are new article serie with nice examples form Google self at http://googleappengine.blogspot.com/2009/12/jpajdo-java-persistence-tips-year-in.html

bben
I find the low-level API more "clear" than JDO, but +1 for the excellent link.
Thilo