急,2.0启动报这个ebean的异常。
Unexpected exception PersistenceException: Error with [models.training.Comment] It has not been enhanced but it's superClass [class play.db.ebean.Model] is? (You are not allowed to mix enhancement in a single inheritance hierarchy) marker[play.db.ebean.Model] className[models.training.Comment] No source available, here is the exception stack trace: ->javax.persistence.PersistenceException: Error with [models.training.Comment] It has not been enhanced but it's superClass [class play.db.ebean.Model] is? (You are not allowed to mix enhancement in a single inheritance hierarchy) marker[play.db.ebean.Model] className[models.training.Comment] com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.setEntityBeanClass(BeanDescriptorManager.java:1532)这个问题如何解决?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
困扰了半天的任务。哎。。。。2.0坑不浅呀!
哇哦.下次还是迟点发问吧.
找到解决办法:在Build.scala中加入
ebeanEnabled := true