Skip to content
Discussion options

You must be logged in to vote

@lacerdanycolas
Here is an simple example I created using Micronaut Launch: https://github.com/radovanradic/demo-mongo-ns
I have noticed you are using Kotlin so this is what should be added for annotation processor:

kapt("com.example:demo-mongo-ns")

One issue I had with this is that first needed to add my custom NamingStrategy, build project so libs are available for the annotation processor and then add this ^ to build.gradle
There is probably better way but I am not very experienced with the build so this was workaround for me. You can see in debug logs when running test that Mongo is creating collection using custom naming strategy.

HTH,
Radovan

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@lacerdanycolas
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lacerdanycolas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants