[appengine-java] Beginner question: one to many relationship
Hi, sorry for beginner question. I have authors and books in the database. Every author has list of books in a one to many owned relationship. I know the author's name, how can I retrieve the author and his books from database? I know how to get the author but not his books (Author.books). -- 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.
[appengine-java] How to design data model
Hi, I am developing the following app: user logs in and see list of items, e.g. list of cars. Each item has a few parameters, for car item it can be speed, color and manufacturer. User can add, edit and delete items. Most importantly, user can change the item type - so for example he can modify the car type in this way: remove speed parameter and add price and weight parameters. Users should also be able to filter the items by parameters. This should be possible in my app: user creates Books I have read item type with Title, Date and Rating parameters, adds several books and then searches (filters) all books with rating greater than 3. How should I design the datastore data model? Is this even possible in App Engine? Thanks -- 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=.
[google-appengine] Re: How to design data model
Unfortunately, I'm not using Python... is there a way to make this work in Java? On Nov 16, 5:38 am, niklasr nikla...@gmail.com wrote: On Nov 15, 5:48 pm, fhucho fhu...@gmail.com wrote: Hi, I am developing a web app, where users should be able to (in this order): 1) create their item type (item type can be everything - car, book, movie..., item type has some user defined parameters, like price, rating) 2) add items of their type - e.g. they can create book type (with title, author, rating parameters) and then add books 3) view, filter (at least by one parameter), delete, edit their items How should I design the data model? Is this even posible in App Engine? Thanks in advance django has impressive builtin editor for our models with djangoforms.ModelForm seen onhttp://code.google.com/appengine/articles/djangoforms.html Theoretically the create CRUD and/or factory patternhttp://en.wikipedia.org/wiki/Factory_method_pattern I recommend and use for likewise. The categoryproperty.dbhttp://code.google.com/appengine/docs/python/datastore/typesandproper... seems obvious choice which needs documention how it differs from a word. app I maintain has similar function, create item, add item, edit, view, filter by longitude latitude and/or category (www.koolbusiness.com/ai) sourced montao.googlecode.com Sincerely Nick RTZ -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.
[google-appengine] Help me with designing data model
Hi, I am creating an app that will show movie showtimes. I want to show list of movies for some city (let's say there are 2000 cities altogether). I have an entity Movie, that contains info like movie title, description, rating etc. How should I efficiently implement this functionality (find all movies that are in theaters in some particular city). A movie can be currently in more cities at the same time of course. Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Is Google App Engine suitable for my project?
Hello, I want to make a web application but I am not sure if it can be made in GAE. Imagine a search engine for cars, where you can search by parameters such as maximum speed, weight, manufacturer etc. The cars are added manually. Users can use an AJAX web interface for searching the car database so it is essential that querying the database is very fast. For example a user wants to find all cars made by Ford in 2005. In the AJAX interface he selects the manufacturer (Ford), and he immediately sees all cars made by Fors. Then he select the year 2005 and the list of cars is imediately filtered. Users would be able to add custom car parameters, so I need to add a new parameter to all cards in reasonable time. To sum up, I need 2 things: 1) very fast qeurying the database, 2) possibility to add a new parameter to all cars in e.g. less than 1 minute Can I do my web application in GAE? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---