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

No question about relationships #901

Closed
iuricmp opened this issue Dec 22, 2014 · 17 comments
Closed

No question about relationships #901

iuricmp opened this issue Dec 22, 2014 · 17 comments
Milestone

Comments

@iuricmp
Copy link
Contributor

iuricmp commented Dec 22, 2014

The questions concerning the relationships are never made when I use de command:

yo jhipster:entity author

I'm using the option: java8 + mongoDB.

@iuricmp iuricmp changed the title No questioning about relationships No question about relationships Dec 22, 2014
@jdubois
Copy link
Member

jdubois commented Dec 22, 2014

This is normal: if you use MongoDB you don't have relationships.
This only works with JPA + SQL

@jdubois jdubois closed this as completed Dec 22, 2014
@lucasdavid
Copy link

Well, I'm really not a expert on this, but according to mongodb reference, it can contain document references. Spring's driver's manual also claims to do all the mapping for you. Even when we have embedded documents, isn't it the case where at least a private List<Entity> relatedEntities should be placed in the model class?

@jdubois
Copy link
Member

jdubois commented Dec 28, 2014

We only support relationships for SQL-based mappings.
For NoSQL, whatever the solution is (I am currently implementing Cassandra), this won't be done, as it doesn't work (OK, you can put everything in a MongoDB document or use a SuperColumn in Cassandra, but those only work for small collections, and are not scalable as you put everything in the same item, so the interest for those is quite low)

@jdubois jdubois modified the milestone: 2.1.0 Jan 27, 2015
@omrzljak
Copy link

omrzljak commented Apr 5, 2015

support for embedded documents and dbref in MonogDB projects would be very useful.

@vw98075
Copy link
Contributor

vw98075 commented Jul 12, 2015

+1
For the current limited MongoDB domain object modeling support, you only can do some sort of hack for embedded documents so that you can get a better code structure to work on. .

@astik
Copy link

astik commented Feb 12, 2016

+1 for supporting embedded documents and dbref in MongoDB =)

1 similar comment
@suryatejaswi89
Copy link

+1 for supporting embedded documents and dbref in MongoDB =)

@swilimo
Copy link

swilimo commented Aug 20, 2016

+1000 for supporting embedded documents and dbref in MongoDB =)

Actually, i'm implementing that manually, but it would be wonderfull if it was supported "natively"

@jdubois
Copy link
Member

jdubois commented Aug 20, 2016

Can you open up a new ticket for this? And contributions on MongoDB are really welcome!

@swilimo
Copy link

swilimo commented Aug 20, 2016

My pleasure, i will shoot when i'll have some bandwith this week (short delays & close deadlines on a project)

@loul42
Copy link

loul42 commented Sep 23, 2016

+1

@mouadtk
Copy link

mouadtk commented Dec 12, 2017

+1 for supporting embedded documents and dbref in MongoDB =)

@jdubois
Copy link
Member

jdubois commented Dec 12, 2017

There's no need saying "+1" on this old ticket: we all agree it would be a good feature (I even told it yesterday on the core dev mailing list, see https://groups.google.com/forum/?hl=en#!topic/jhipster-dev/KytDq6GGzyQ ). Nobody has ever coded this, and when there's no contribution, it just doesn't happen...
I'm sorry but I won't do it myself, as I don't have the need, and I'm not investing time in MongoDB.
So instead of saying "+1", please tell me you'd like to work on this, and the ticket is yours.

@mouadtk
Copy link

mouadtk commented Dec 12, 2017

lol, actually, I have added the comment, then I noticed there is an open Feature request,
I'll see what I can do on that.

@jdubois
Copy link
Member

jdubois commented Dec 12, 2017

Excellent ! +1 for the PR :-)

@daibertdiego
Copy link

How can I contribute to this part? Because I have a project using SpringBoot, SpringSecurity, MongoDB, ZullProxy and a lot of other technologies that JHipster works too. But now, my database is full of DBRef relationships because I use Morphia as Mongo Framework and I'm very excited to migrate my project to JHipster and I would like to improve this functionality. Thanks

@jdubois
Copy link
Member

jdubois commented Mar 13, 2018

@daibertdiego here is our contributing guide - we all agree that would be a great feature, but we have never found anyone to do it...
Please note that we might refactor the MongoDB support soon, as with Spring Boot 2 we might introduce the MongoDB reactive support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests