Google app engine Google应用程序引擎:Objectify lib 3.1不包括com.googlecode.Objectify.annotation.Id注释?

Google app engine Google应用程序引擎:Objectify lib 3.1不包括com.googlecode.Objectify.annotation.Id注释?,google-app-engine,objectify,Google App Engine,Objectify,我从下载了Objectify 3.1库,当我遵循指南时,他们说我应该用@Id和@Index注释@Entity对象,但这些根本不包括在库中 My com.googlecode.objectify.annotation软件包仅包含以下注释: com.googlecode.objectify.annotation.alsolad.class com.googlecode.objectify.annotation.Cached.class com.googlecode.objectify.annota

我从下载了Objectify 3.1库,当我遵循指南时,他们说我应该用@Id和@Index注释@Entity对象,但这些根本不包括在库中

My com.googlecode.objectify.annotation软件包仅包含以下注释:

  • com.googlecode.objectify.annotation.alsolad.class
  • com.googlecode.objectify.annotation.Cached.class
  • com.googlecode.objectify.annotation.Entity.class
  • com.googlecode.objectify.annotation.index.class
  • com.googlecode.objectify.annotation.NotSaved.class
  • com.googlecode.objectify.annotation.Parent.class
  • com.googlecode.objectify.annotation.Serialized.class
  • com.googlecode.objectify.annotation.Subclass.class
  • com.googlecode.objectify.annotation.unindex.class

请帮忙!谢谢

Objectify 3.1使用javax.persistence.Id,而不是它自己的包中的Id注释。我相信这样做的基本原理是应该使用标准注释,而不是特定于库的注释。在任何情况下,Objectify4(有许多非常好的改进)在jar中定义了Id注释。。。我怀疑是因为你的问题并不罕见