A plan entity, which contains the following attributes: - Primary Key - Plan details? can be descriptions, name, etc
A user entity, with the following attributes - Primary Key - Plan's Primary Key - User details such as name, address, etc. When a user joins the plan, you should already know the PK of the plan, stick it into the Plan's PK field to map the user to the plan. On Sat, Dec 26, 2009 at 9:31 PM, TiagoP <[email protected]> wrote: > Could you explain me based on the example I gave how would you do that > in GAE please? > If it is not much complicated I would appreciate. > > The only idea I have is creating a different data class and each time > someone joins a plan I create a new entity with the plan data, but I > don't see how I can have a table with the data and connect the two of > them, without the need of filling the fields everytime someone joins. > > I'm not sure if I'm making myself clear, please tell me. > > Thanks. > > > On 26 Dez, 02:36, Michael Chan <[email protected]> wrote: > > You can do some sort of relational mappings between entities but not to > the > > full extend like RDBMS. > > > > Have you worked through the examples inhttp:// > code.google.com/appengine/docs/java/datastore/yet? > > > > > > > > > > > > On Fri, Dec 25, 2009 at 9:36 PM, TiagoP <[email protected]> wrote: > > > Hi all, > > > > > I have a simple doubt that I would like to see explained. > > > > > I know a bit of relational databases but I don't understand how I can > > > do the same using JDO. > > > > > As for example, I have a table users-plans which combines the table > > > user to the table plans. In table plans I have all the plans and I > > > just match it to the user in a "middle table". > > > > > Could someone explain how this would work in GAE? > > > > > Thanks and Merry Christmas! > > > > > -- > > > > > 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 > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-appengine-java%[email protected]> > <google-appengine-java%2b[email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine-java?hl=en. > > > > -- > > Regards, > > > > Michael Hoi Sang Chan > > > > MSc Advanced Software Engineering > > Department of Computer Science > > King's College London > > Strand, LONDON > > WC2R 2LS > > > > Tel: +447881900965- Ocultar texto citado - > > > > - Mostrar texto citado - > > -- > > 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 > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > > -- Regards, Mike de Chan -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
