Is there a reason you're setting a List of Maps? You may want to rethink the
way your data is structured for code clarity.

It looks like you've hit a sensible restriction: Maps can't be properties.
We can't index them. Instead, you may want to create a wrapper class and
serialize it.

On Fri, Feb 12, 2010 at 4:21 AM, vbjain <[email protected]> wrote:

> Hello All,
>
> Right now i am using gwt with low level API for creation of dynamic
> models.
>
> But i just got stucked at one place. I had stored my fields attributes
> in below collection:
>
> List<Map<String, String>> fieldMap = new ArrayList<Map<String,
> String>>();
>
> And when i run following code it give me error on second line:
>
> Entity entity = new Entity("ModelList");
> entity.setProperty(model.getModelName(), fieldMap);
> dataStore.put(entity);
>
> Error: java.lang.IllegalArgumentException: java.util.HashMap is not a
> supported property type.
>
> How can i solve this? Actually i am learning all things JPA, JDO, low
> level API, so i am not able to solve this small issue.
>
> Should i use low level API only for dynamic generation of models or is
> there any other thing available? Application should not decrease the
> performance.
>
> Thanks.
>
> --
> 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]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

-- 
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.

Reply via email to