-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom IdGenerator fail #128
Comments
This is the code in ebean that throws the exception(for version 10.3.1, which is the version sbt-play-ebean 4.0.2 uses): Which then goes to this: So it looks like the override isn't actually being registered. I had a look here: https://www.playframework.com/documentation/2.6.x/JavaEbean And it looks like you followed the example from that page, which begs the question: is the example correct/complete? Maybe it was written for an older version? Not sure. I'm not part of the dev team btw, just had some time to kill. Have you tried binding it in your Module? Like so: https://playframework.com/documentation/2.6.x/JavaDependencyInjection#eager-bindings Not sure if it's necessary but might be that Play isn't aware of the override unless you force it to do an eager singleton on it during startup. |
Where did you place your CustomServerStartupConfig class? It should be in
the same package with your models.
…On Sep 9, 2017 11:45 PM, "Koen De Groote" ***@***.***> wrote:
This is the code in ebean that throws the exception(for version 10.3.1,
which is the version sbt-play-ebean 4.0.2 uses):
https://github.com/ebean-orm/ebean/blob/0a5ce1bee8e6317f4ef7c93087b6b0
f63e911a59/src/main/java/io/ebeaninternal/server/deploy/
parse/AnnotationFields.java#L506-L512
Which then goes to this:
https://github.com/ebean-orm/ebean/blob/0a5ce1bee8e6317f4ef7c93087b6b0
f63e911a59/src/main/java/io/ebeaninternal/server/deploy/generatedproperty/
GeneratedPropertyFactory.java#L118-L120
So it looks like the override isn't actually being registered. I had a
look here: https://www.playframework.com/documentation/2.6.x/JavaEbean
And it looks like you followed the example from that page, which begs the
question: is the example correct/complete? Maybe it was written for an
older version? Not sure.
I'm not part of the dev team btw, just had some time to kill.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#128 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGAfbKDjRzmrFDAjgcOu5D_MYZmwv5hLks5sgxT8gaJpZM4PSFeX>
.
|
@oexza That's not mentioned in the Play documentation. Also, I'm not the original poster. Just mentioning it since GitHub is making it look like you replied to me directly. |
Sorry, markdown foramt wrong. I found bootup work before my customserverconfig |
I got fail message
Was there anything wrong with what I did?
The text was updated successfully, but these errors were encountered: