Ebean with Spring Boot leads to Model not enhanced or DataSource

173 views
Skip to first unread message

nehll

unread,
Apr 4, 2017, 5:31:03 AM4/4/17
to Ebean ORM
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

Reply all
Reply to author
Forward
0 new messages