hi,
How to use a ArrayList with google User?
I have the follow class persistence class:
import com.google.appengine.api.users.User;
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Match {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
private ArrayList<User> who;
private Date when;
private String where;
I'm getting 400 bad request:
400 Bad Request
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "badRequest",
"message":
"com.google.appengine.repackaged.org.codehaus.jackson.map.JsonMappingException:
Can not deserialize instance of com.google.appengine.api.users.User out of
START_ARRAY token\n at [Source: N/A; line: -1, column: -1] (through reference
chain: com.github.wiliamsouza.canelada.Match[\"who\"])"
}
],
"code": 400,
"message":
"com.google.appengine.repackaged.org.codehaus.jackson.map.JsonMappingException:
Can not deserialize instance of com.google.appengine.api.users.User out of
START_ARRAY token\n at [Source: N/A; line: -1, column: -1] (through reference
chain: com.github.wiliamsouza.canelada.Match[\"who\"])"
}
}
Thanks,
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/BTrFeQJTrkEJ.
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?hl=en.