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

Support MongoDB #49

Open
JasonTypesCodes opened this issue May 14, 2020 · 12 comments
Open

Support MongoDB #49

JasonTypesCodes opened this issue May 14, 2020 · 12 comments
Labels
$$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ enhancement 💎 New feature or request $200 https://www.jhipster.tech/bug-bounties/

Comments

@JasonTypesCodes
Copy link
Contributor

No description provided.

@mraible mraible added $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ $200 https://www.jhipster.tech/bug-bounties/ labels Aug 21, 2020
@JasonTypesCodes JasonTypesCodes added the enhancement 💎 New feature or request label Aug 24, 2020
@ghost
Copy link

ghost commented Sep 3, 2020

Hi!! I would like to do this task.
So I have not found an ORM for mongodb. Is it necessary to use mongodb-driver-sync that uses mongoClient?
A minimal configurated example.

@atomfrede
Copy link
Member

Yes I think there is currently no support in e.g. micronaut data like in spring boot data.

@ghost
Copy link

ghost commented Sep 3, 2020

ookkk, I start with that. Thanks

@atomfrede
Copy link
Member

@ghost
Copy link

ghost commented Sep 3, 2020

Maybe gorm for mongodb is something to look at. https://micronaut-projects.github.io/micronaut-mongodb/latest/guide/

For Groovy users and users familiar with Grails, special support has been added to Micronaut for using GORM for MongoDB.

It seems that supports only groovy language and not java.

@atomfrede
Copy link
Member

Ah you might be right, was not clear to me from the single sentence.

@JasonTypesCodes
Copy link
Contributor Author

@atomfrede is correct that Gorm requires Groovy. While it wouldn't be a requirement to add support for Mongo here, we do have it on our upcoming roadmap in Micronaut: https://github.com/micronaut-projects/micronaut-core/wiki/Top-Level-Roadmap

@ghost
Copy link

ghost commented Sep 10, 2020

@atomfrede is correct that Gorm requires Groovy. While it wouldn't be a requirement to add support for Mongo here, we do have it on our upcoming roadmap in Micronaut: https://github.com/micronaut-projects/micronaut-core/wiki/Top-Level-Roadmap

So I can start the issue implementing the mongodb-driver or we should wait for the groovy support?

@atomfrede
Copy link
Member

Two things to keep in mind:

  • Doing it without proper micronaut data support would involve manual mapping from mongo document to entity/business. This can be done, but its a lot of work we would remote again when micronaut data supports it
  • Adding large features now might also not the best idea with the first jhipster 7 beta/pre-release around the corner

@ghost
Copy link

ghost commented Sep 10, 2020

Ok, then I will wait for the jhipster/mongodb supporting and upgrade. Thanks

@JasonTypesCodes
Copy link
Contributor Author

I wanted to leave a note here to say that while Micronaut Data does not support Mongo yet (micronaut-projects/micronaut-data#220), there is a Micronaut MongoDB module here: https://micronaut-projects.github.io/micronaut-mongodb/latest/guide/

@dstepanov
Copy link

FYI Micronaut Data supports MongoDB already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
$$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ enhancement 💎 New feature or request $200 https://www.jhipster.tech/bug-bounties/
Projects
None yet
Development

No branches or pull requests

4 participants