Can't you just call the accessor of Member after it is saved? -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine
On Sun, Dec 12, 2010 at 3:20 PM, ping <[email protected]> wrote: > Hello, > I have the following code: > > try { > Extent<Member> extent = pm.getExtent(Member.class, > false); > for (Member m : extent) { > m.addPurchase(p); > } > } > extent.closeAll(); > } > > So... with the line m.addPurchase(p) the p Object is automatically > saved to the datastore. How can i get the generated unique key for > this object from the datastore? > > greets > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
