persistence-manager

Google App Engine PersistenceManager can process multiple objects ?

I have some code like this : PersistenceManager pm=PMF.get().getPersistenceManager(); String query="select from "+PayPal_Message.class.getName()+" where processed == false order by time desc"; List<PayPal_Message> messages=(List<PayPal_Message>)pm.newQuery(query).execute(); if (messages.isEmpty()) ...

Could not initialize class com.sample.PMF (Google app engine)

Hi, I am getting this error while trying to save something to Datastore. I have tried to search but not getting anything. This is the code where i am saving to datastore : Student temp = null; PersistenceManager pm = PMF.get().getPersistenceManager(); try { Student stu = new Student(name); temp = pm.makePers...

PersistenceManager and Open Session In View

Hi, my java skills are a bit rusty and I'm wondering how I can implement Open Session In View pattern for the PersistenceManager called from a servlet in a google app engine environment. I have some singleton which handles the PersistenceManagerFactory, but how can I get a "new" PersistenceManager at each servlet call ? I want my bus...