It has not been extended, but is it a superclass [class play.db.ebean.Model]?

I am trying to save my object in db, but it says that it is not extended. how to upgrade class? Is there a marker in ebean to mark a class as reinforced?

+6
source share
1 answer

I assume that you are using Play 2.0. All you have to do is extend the Model and then continue. You can specifically activate ebean servers in the configuration file, but this should not affect the result.

What happens in your case is likely that Eclipse will ruin (usually overwrite) the bytecode modifications created by the Play compiler. Here I assume that you are using Eclipse. This is a common problem that can be solved by disabling Eclipse, running play clean compile and starting Eclipse.

+6
source

Source: https://habr.com/ru/post/919300/


All Articles