GWT with JDO problem

后端 未结 6 1462
抹茶落季
抹茶落季 2020-12-15 01:24

I just start playing with GWT I\'m having a really hard time to make GWT + JAVA + JDO + Google AppEngine working with DataStore. I was trying to follow different tutorial bu

6条回答
  •  一生所求
    2020-12-15 02:03

    Sriram Narayan says to String-encode the Key to get it to pass through GWT's RPC mechanism:

    @PersistenceCapable(identityType = IdentityType.APPLICATION)
    public class SomeDomainClass implements Serializable {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
    String id;

提交回复
热议问题