I thought this was working before, so I'm not sure if this is a PEPCAK
problem...
I'm inserting an entity with a serialized collection of other
serialized objects. This stores correctly on updates, but when I set
the serialized collection on insert, it forgets the collection. Any
ideas? Would you expect insert and update to handle the serialized
collection of objects differently?
Thanks!
Here's how I'm doing it:
public class Foo{
...
@Persistent(serialized="true")
private Set<SomeSerializedObject> myObj;
...
}
Foo f = new Foo();
f.setSomeSerializedObject(new SomeSerializedObject("foo bar"));
Transaction tx = pm.currentTransaction();
try
{
tx.begin();
pm.makePersistent(f);
tx.commit();
} finally {
if(tx.isActive())
{
tx.rollback();
}
}
--
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.