MongoDB Panache ObjectId in native image mode #32511
Unanswered
szabolcs-dekany
asked this question in
Q&A
Replies: 2 comments
-
/cc @FroMage (panache), @evanchooly (mongodb), @loicmathieu (mongodb,panache) |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is strange, it seems your Entity is not included in the native image but we register all of them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all! I'm currently having in issue with running my simple little app in native image mode.
I have the following simple entity:
I have to simple transactional method that creates an entity of this type:
This setup works fine in regular JVM mode, an ObjectId is created automatically for the entity, but as soon as I compile it into a native image, this seem to not work and I'm getting NPs when trying to call
return entity.id.toString();
Tried to see if its Lombok, tried it without the builder but it seemingly makes no difference. Anyone ran into this before?
Cheers,
Szabolcs
Beta Was this translation helpful? Give feedback.
All reactions