Hi x_maras, re: using email as a primary key http://code.google.com/appengine/docs/java/users/overview.html The User object exposes a unique user ID that is guaranteed to be stable for the lifetime of the user's account, even if the email address is changed. You can use this value in a datastore entity key or property value.
re: Datastore, Java, JSP, JSON, AJAX, Web Page Writing a RESTful service that can respond to AJAX requests with JSON payloads is very much a mainstream way to do things on app-engine. Be careful to keep the processing response times really short. The max response time is 30 seconds, the sweet spot is to average about 1 second response time. Happy Coding, --Stevko On Wed, Oct 6, 2010 at 4:34 PM, x_maras <dinost...@gmail.com> wrote: > Hi, > > I am new to GAE and I want to make a web application page on it. > I was used to work with PHP for web applications but lately I am > struggling to get in the thinking of a GAE web application. > > After reading tutorials and trying to do different things I came up > with a thinking how I want my project to be and how to make the > communication through the different layers. I will explain you my > thinking and I would like to tell me if am I in the right way and if I > am not I would like someone to put back into it. > > e.g. > > I thought to have a user @persistent class for storing the information > of a user, such as name, email(as a primary key), registration date > etc... (I will use the User class for logging in, but I want to keep > some data also for every user) > > Then I need to create a java (dao) class that reads and inserts data > to the datastore "tables-objects". I thought to create a different one > for each @persistent class > > Then Java files that execute the functions from the DAO classes and > give information to the jsp files which through JSON give information > to the Ajax functions in the HTML page (which I was thinking also to > be the welcome-file in my web.xml) > > So here comes the questions. Is something like this right? Is it going > to work? And if not what do you propose me to do. > > Any links or examples are very very welcome. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.