Persist List of objects

后端 未结 1 1611
庸人自扰
庸人自扰 2021-01-26 13:04

I got this \"javax.jdo.JDOFatalUserException: Error in meta-data for don.Comment.id: Cannot have a java.lang.String primary key and be a child object (owning field is d

1条回答
  •  抹茶落季
    2021-01-26 13:44

    For child classes the primary key has to be a com.google.appengine.api.datastore.Key value (or encoded as a string) see http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys

    0 讨论(0)
提交回复
热议问题