Error during job execution (jobs.LoadCachestatsinfo)
Execution exception (In /app/jobs/LoadCachestatsinfo.java around line 58)
UnsupportedOperationException occured : Please override this method for user marked Id field entity: models.Cachestatsinfo
play.exceptions.JavaExecutionException: Please override this method for user marked Id field entity: models.Cachestatsinfo
at play.jobs.Job.call(Job.java:216)
at Invocation.Job(Play!)
Caused by: java.lang.UnsupportedOperationException: Please override this method for user marked Id field entity: models.Cachestatsinfo
这个错误是因为使用了jpa的@Entity注释引起的,
修改为:
import com.google.code.morphia.annotations.Entity;
就好了