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 [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.