> My experience with JPA in general has always been that operations were > wrapped in a transaction and changes were persisted on the commit() call of > the transaction object, not on the closing of the > PersistenceManager/EntityManager. I tried this. The same result.
After makePersistent() call all changes to list are ignored. > > One way to update an object with JDO is to fetch the object, then modify it > while the PersistenceManager that returned the object is still open. Changes > are persisted when the PersistenceManager is closed. > Yes, it works. But in my case I create a bunch new objects A and B. Then I want to have many to many relationship between them. (both A and B keep list of keys. A keeps B's key and B keeps A's) To get key I have to call makePersistent(). Then I have to update list of keys. But that updated list never becomes persistent. I have to fetch objects back, update lists and save them again. There is no way to create objects and setup many to many relationship in one transaction. Thank you, Andrey -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
