Play Framework: PersistenceException: The type is not a registered entity? (Ebean)

后端 未结 1 1354
[愿得一人]
[愿得一人] 2020-12-29 16:19

I\'m following the Play Framework 2.0 tutorial for Java and get this error when trying to save an ebean Model (task.save()).

[Persistence

相关标签:
1条回答
  • 2020-12-29 17:14

    Check these 3 points :

    • Your model is annotated with @Entity (javax.persistence.Entity)
    • Your model extends Model (play.db.ebean.Model)
    • Ebean is enable in your application.conf ebean.default="models.*" (if your classes are in the models package)
    0 讨论(0)
提交回复
热议问题