Remove the line "pm.makeTransientAll((Collection)results);" and it should work fine. And no need for the line "query.closeAll();) as well.
On 11/10/10 12:14, "Puneet" <puneet.nah...@gmail.com> wrote: >In the below method, the makeTransientAll method is not working. I am >not able to show the contents of returned List in jsp. > >@Override >public List<Party> getParty (String name) { > > List<Party> results = null; > PersistenceManager pm = PMF.get().getPersistenceManager(); > > Query query = pm.newQuery(Party.class); > query.setFilter("companyName.startsWith(nameParam)"); > query.declareParameters("String nameParam"); > > try { > results = (List<Party>) query.execute(name); > pm.makeTransientAll((Collection)results); > } finally { > query.closeAll(); > pm.close(); > } > > return results; >} > >If I copy the contents of results to a new ArrayList, then the app is >working fine. This means that the pm.makeTransientAll method is not >working. Please help as to where i may be doing wrong. > >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=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.