PersistenceManager pm = PMF.get().getPersistenceManager();
Transaction tx = pm.currentTransaction();
Realitka r = new Realitka ();
tx.begin();
Nemovitost n = new Nemovitost (req.getParameter("value")
List<Nemovitost> nlist = new ArrayList<Nemovitost>();
nlist.add(n);
r.setSeznamNemovitosti(nlist);
try {
           pm.makePersistent(r);

        } finally {
            tx.commit();
            pm.close();
        }

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

Reply via email to