If I use @Persistent(serialized = "true") Multimap<String, Long> map;
I get javax.jdo.JDOUserException: Field "...jdo.MyModel.map" is declared as a reference type (interface/Object) but no implementation classes of "com.google.common.collect.Multimap" have been found! but if I use @Persistent(serialized = "true") HashMultimap<String, Long> map; its working fine. On Sep 25, 1:20 pm, Dhamu <[email protected]> wrote: > Thanks Jason... > > @Persistent(serialized = "true") -- this works fine.. > > - Dhamu. > > On Sep 24, 8:02 pm, mcrady <[email protected]> wrote: > > > I don't see serializable as an > > option:http://db.apache.org/jdo/api23/apidocs/javax/jdo/annotations/Persiste... > > > On Sep 23, 11:01 am, "Jason (Google)" <[email protected]> wrote: > > > > If you use a non-native datastore type that isn't declared to be > > > PersistenceCapable, you need to explicitly indicate that it is > > > serializable: > > > @Persistent(serializable = "true") > > > Multimap map; > > > > ... > > > > This should work if the class of the object implements Serializable. For > > > instance, I've been able to store HashMap objects this way. > > > > - Jason > > > > On Mon, Sep 21, 2009 at 2:26 PM, Dhamu <[email protected]> wrote: > > > > > How to use multimap (http://google-collections.googlecode.com/svn/ > > > > trunk/javadoc/com/google/common/collect/Multimap.html) in jdo? > > > > > I get the following exception. > > > > org.datanucleus.exceptions.NucleusUserException: Field > > > > "...model.jdo.MyModel.content" is declared as a reference type > > > > (interface/Object) but no implementation classes of > > > > "com.google.common.collect.Multimap" have been found! > > > > > please help!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
