Skip to content
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

Enable multiple mongoTemplate support #72

Closed
kaiso opened this issue Apr 25, 2021 · 3 comments
Closed

Enable multiple mongoTemplate support #72

kaiso opened this issue Apr 25, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@kaiso
Copy link
Owner

kaiso commented Apr 25, 2021

  • Change the @EnableRelMongo annotation to have a new attribute mongoTemplateRef.
  • Change the RelMongo logic to be able to target a specifig mongoTemplate.
@kaiso kaiso added the enhancement New feature or request label Apr 25, 2021
@kaiso kaiso self-assigned this Jun 16, 2022
@kushalgupta36
Copy link

Hey
I guess I am getting this issue right now. I am using multiple mongo dbs in my springboot application and for that I am using custom mongo template names. So are there any workarounds for now?

@kaiso
Copy link
Owner Author

kaiso commented Jun 28, 2022

Hello @kushalgupta36 can you use the version 3.5.0-RC4 which allows to specify the mongo template to target ?
use the following code :

@EnableRelMongo(mongoTemplateRef = "mongoTemplate")

@kushalgupta36
Copy link

Hey @kaiso, i used the version 3.5.0-RC4, it worked flawlessly. Thanks!

@kaiso kaiso closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants