How to store ArrayList of Maps in Google App Engine objectify (java) -
i want store arraylist raw type hashmap in datastore. please 1 me.
one way use serialize annotation flatten data structure has limits example, serialized data must less 1mb , objectify annotations such transient ignored.
@entity class entitywithserialized { @id long id; @serialize list<map<object, object>> stuff; } //... entitywithserialized entity = new entitywithserialized(12345,listmapobject); ofy().save().entity(entity).now(); ofy().load().key(12345).now();
Comments
Post a Comment