JPA vs. low-level data storage in App Engine

I will now learn App Engine development with Java, and I wonder what people think about using low-level api instead of JPA? I understand that JPA may make decisions more portable in the future, but I do not expect my code anywhere else.

Is it possible to use low-level api instead of JPA? I am interested in hearing the pros and cons of each method.

+3
source share
2 answers

I ask you to clarify a clear API like jdo on the direct use of the data warehouse. There is a new series of articles with beautiful examples that form Google independently http://googleappengine.blogspot.com/2009/12/jpajdo-java-persistence-tips-year-in. html

+2
source

Why choose one or the other? I would choose a higher-level abstraction that is documented (JPA or JDO) and a low-level API where high-level abstraction does not meet the requirements.

Keep in mind that the API is still not working, so if you choose only a low-level API, be prepared to roll with the changes.

I found that JDO is the easiest way to work, and have not yet resorted to using a low-level API.

0
source

Source: https://habr.com/ru/post/1726912/


All Articles