Hi Jaroslav, I think the Article entity returned was detached already, right? In fact you can try a simple test by modifying the returned object and verify it value on Admin Console.
The PersistenceManagerFactory takes time to init, but once only ( http://code.google.com/appengine/docs/java/gettingstarted/usingdatastore.html ) while it's cheap to create as many PersistenceManager's as your need. Thanks 2010/4/29 Jaroslav Záruba <jaroslav.zar...@gmail.com> > What are possible consequences of having method like this? > > -- > public Article getArticle(Key key) > { > return > pManagerFactory.getPersistenceManager().getObjectById(Article.class, > key); > } > -- > > Is it generally wrong? I.e. will I run out of available pManagers? > And if it is OK, for how long can I call setters on non-detached > object to have those changes propagated to data-store? > > Regards > J. Záruba > > -- > 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.