Google app engine 如何在JDO中使用index=false?

Google app engine 如何在JDO中使用index=false?,google-app-engine,Google App Engine,我有一个数据类(在GoogleAppEngine,JDO中)作为 我不想hireDate被编入索引,我该怎么做?得到了答案。。。需要添加@Extension(vendorName=“datanucleus”,key=“gae.unindex”,value=“true”)更多信息,请访问 @PersistenceCapable public class Employee { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStr

我有一个数据类(在GoogleAppEngine,JDO中)作为


我不想hireDate被编入索引,我该怎么做?

得到了答案。。。需要添加@Extension(vendorName=“datanucleus”,key=“gae.unindex”,value=“true”)更多信息,请访问
@PersistenceCapable
public class Employee {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String firstName;

    @Persistent
    private String lastName;

    @Persistent
    private Date hireDate;
}