Hello,
currently I'm trying in integrate Ebean 10.2.1 in my Spring Boot 1.5.2 application.
My IDE is IntelliJ with Ebean 10.x Enhancement and Gradle Build.
I have tried different approaches:
1.
Using Model.Finder leads to following error:
java.lang.RuntimeException: DataSource user is null?
2.
Autowiring EbeanServer and using server.find(MyModel.class) api.
But on "bootRun" I'm getting this error:
Bean class MyModel is not enhanced?
In the Stack Trace I can see where it breaks. It fails because my Model doesn't implements an Interface?
(It only extends Model)
3.
Autowiring EbeanServer and using createSqlQuery api.
This actually works, but I have to disbale MyModel by removing all annotations (@Entity, @Table, @Column, @Id)
otherwise it will lead to the "not enhanced" error.
Does anyone has any ideas what might cause this?
Thanks for help
best regards
nehll