GAE/JでClassNotPersistenceCapableExceptionが発生した。
model(@PersistenceCapableなクラス)のパッケージを変更したら下記のエラーが出るぽい。
modelのパッケージ変更は簡単にはできないと覚えておこう。 たぶんデータ全部消して時間がたてばOKなんじゃないかな?とか勝手に思ってる。
org.slim3.controller.Controller runBare: The class "The class "test.model.CronLog" 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. org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: The class "The class "test.model.CronLog" 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. at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:305) at org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:673) at org.datanucleus.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:693)
追記
パッケージ変更は関係なかったはず。
JODでもパッケージに関係なくClass.getSimpleName()を元にKINDを作成しているから。