Cannot register class in Ebean server (Play Framework 2 - Java)

自闭症网瘾萝莉.ら 提交于 2019-12-05 04:22:50

SOLVED: It turned out that the methods with problems all referenced fields that were marked as final. Apparently, Play Framework / Ebean does not like final fields in Entity classes. After removing the final keyword from these field, the problem went away.

I am using play 2.3 and faced the same problem.

I created an abstract class and another one extending this abstract class. This cause an error. Looks like ebean consider every class extending an abstract class as a final class and throw the same error message.

Moving all the classes in another package removed the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!