Hi
I am trying to implement a many-to-many relationship as mentioned in
the example mentioned in the GAE/J
I am using the following object
public class Person implements IsSerializable
{
@Persistent
ArrayList<String> addresses = new ArrayList<String>();
@Persistent
private int age;
@Persistent
private char gender;
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long key;
@Persistent
private String name;
public Person()
{
}
public Person(String name, int age, char gender)
{
this.name = name;
this.age = age;
this.gender = gender;
}
/* Getters and Setters */
the problem occurs when i try to send the object over the wire to the
GWT. and get the following error
'org.datanucleus.sco.backed.ArrayList' was not included in the set of
types which can be serialized by this SerializationPolicy or its Class
object could not be loaded. For security purposes, this type will not
be serialized.: instance = []
however when i change the object type of Addresses from <String> to
complex type like e.g. Address,
change
ArrayList<String> addresses = new ArrayList<String>();
to
ArrayList<Address> addresses = new ArrayList<Address>();
it is able to send the object to the GWT Client.
Am i missing something ? Please help
Vivek
--
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.