Hey John, Yes and no. In order to store something into the datastore, it needs to be serialized and, thus, serializable. Having a class 'implement Serializable' flags it as having that property (according to Java), however there are still many things that can cause the serialization process to fail, most notably having a field of the object that is not serializable. Most things that you'd want to store (Strings, Longs, ArrayLists...) do implement the Serializable interface. If you are in doubt, check them in the Java API.
Jake On Apr 30, 3:45 pm, jreilly <[email protected]> wrote: > Meaning: > > @PersistenceCapable(identityType = IdentityType.APPLICATION) > public class Location implements Serializable { > @PrimaryKey > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) > private Long id; > @Persistent > private Long deptId; > > So simply adding that will work? I tried that at the Memcache but I > guess it's the class I'm storing that needs it. Thanks for the heads > up. > > John > > On Apr 30, 12:35 pm, datanucleus <[email protected]> wrote: > > > Does it "implements Serializable" ? No. > > > -- > > 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 > > athttp://groups.google.com/group/google-appengine-java?hl=en. > > -- > 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 > athttp://groups.google.com/group/google-appengine-java?hl=en. -- 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.
