You should have a look on the supported types in the datastore : http://code.google.com/intl/fr-FR/appengine/docs/java/datastore/dataclasses .html#Core_Value_Types
In your case, try the following: entityOfTypePeople.setProperty("name", people.getName()); entityOfTypePeople.setProperty("country", people.getCountry()); Or try a simplier solution when getting started with appengine: have a look on the JDO features rather than the low-level API. Good luck. On 09/11/10 07:19, "Mayumi Liyanage" <mayumi.liyan...@coldwin.com> wrote: >Hi, I have an entity which has property Person person(user defined >object) so I wanted to setProperty("person", new Person()) however got >an IllegalArgumentException "....Person is not a supported property >type". It is a simple class with field String name and String country >which implements Serializable. > > class People{ Person person; } > >I am trying to: > >entityOfTypePeople.setProperty("person", new Person()); > >this is where I get "IllegalArgumentException ....Person is not a >supported property type". > >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 >google-appengine-j...@googlegroups.com. >To unsubscribe from this group, send email to >google-appengine-java+unsubscr...@googlegroups.com. >For more options, visit this group at >http://groups.google.com/group/google-appengine-java?hl=en. > -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.