IntelliJ IDEA で JDO2 を使用して新しい GAE/J プロジェクトを作成しようとしましたが、次の org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException が原因でうまく機能しません。
The class "Book" is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data/annotations for the class are not found." is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data for the class is not found.
Eclipse でもまったく同じプロジェクトを作成してみましたが、問題なく動作します。作成したモデルは以下のように非常にシンプルです(このモデルは無関係だと思います):
@PersistenceCapable
public class Book {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
@Persistent
private String name;
public Book(String name) {
this.name = name;
}
}
ありがとう。