I'm aware that with transactions, it must use the same service... On Aug 26, 12:18 am, Mike Gleason jr Couturier <[email protected]> wrote: > Do the retrieved Entities from a DatastoreService must be put by the > same DatastoreService!? > > for example, is it legal to do something like: > > DatastoreService d1 = DatastoreServiceFactory.getDatastoreService(); > DatastoreService d2 = DatastoreServiceFactory.getDatastoreService(); > Entity e = d1.get(KeyFactory.createKey("hello", "world")); > // [...] > d2.put(e); > > This is because I'm encapsulating the hrd into repositories and the > Spring framework makes singletons out of them when using dependency > injection. > > Thanks
-- 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.
