Google app engine google应用程序引擎中的JDO,除“type”以外的其他PrimaryKey;“关键”;有可能吗?
为什么不能定义另一个键而不是 @主键 @持久性(valueStrategy=IdGeneratorStrategy.IDENTITY) 私钥; ?Google app engine google应用程序引擎中的JDO,除“type”以外的其他PrimaryKey;“关键”;有可能吗?,google-app-engine,jdo,Google App Engine,Jdo,为什么不能定义另一个键而不是 @主键 @持久性(valueStrategy=IdGeneratorStrategy.IDENTITY) 私钥; ? 如果我试图定义一个@PrimaryKey,比如说,一个整数,我会得到一个服务器错误。。。 是的,您可以使用长 @主键 @持久性(valueStrategy=IdGeneratorStrategy.IDENTITY) 私人长id 还是一根绳子 @主键 私有字符串名称 请参见public class Commit{@PrimaryKey private
如果我试图定义一个@PrimaryKey,比如说,一个整数,我会得到一个服务器错误。。。
是的,您可以使用长 @主键 @持久性(valueStrategy=IdGeneratorStrategy.IDENTITY) 私人长id 还是一根绳子 @主键 私有字符串名称
请参见public class Commit{@PrimaryKey private String ip;}不起作用,请将@PersistenceCapable(identityType=identityType.APPLICATION)放在类之前。否则你得告诉我你到底犯了什么错误不。eclipse将“应用程序”标记为错误(尽管它在api中…:/)