| « Setting up new laptop for Flex Development | Google App Engine Getting Started #3 » |
Google App Engine Getting Started #4
The next topic in the getting started with Google App Engine was working with storing data. There are two options to persistence in the Google App Engine world, JDO and JPA. JPA is probably familiar to anyone who is doing enterprise development in Java. I had personally never heard of JDO before. The example for this getting started guide uses the JDO option for persistence.
By default, a new Google App Engine sets up everything that you'll need for persisting objects so all you haev to do is create your objects and add the appropriate annotations to them. I followed the steps from the guide except I named my PersistenceManagerFactory "PersistenceManagerFactory" since PMF tells nothing to someone trying to read your code. This conflicts with the built in class, but since that class should only be referenced by your own PersistenceManagerFactory I didn't view this as much of a negative.
This part of the guide can be found here:
http://code.google.com/appengine/docs/java/gettingstarted/usingdatastore.html
The results are located here:
http://alevicki.appspot.com/guestbook.jsp