Did you tried using java.util.HashSet?? That should work fine and is serializable.
--Harsh Yadav On Mon, Mar 7, 2011 at 1:31 AM, Chris D <[email protected]> wrote: > Hey everyone, > > So I have a pool that has many users, and users can also have many > pools, so it's a pretty straightforward many to many relationship. So > take for instance my pool class, I have a HashSet<Long> > userIDs ...which contains all the ids of users. When I try to create > a new pool, I get the following error message... > > "Caused by: com.google.gwt.user.client.rpc.SerializationException: > Type 'org.datanucleus.sco.backed.HashSet' 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 = []" > > My Pool class and PoolUser class both have default constructors. The > persistent parts of the pool class look like this.. > > @PrimaryKey > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) > private Long id; > @Persistent > private String name; > @Persistent > private HashSet<Long> users = new HashSet<Long>(); > > > Anyway, any ideas on how I might fix this would be great. > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" 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-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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-web-toolkit?hl=en.
