Referencing embedded documents #294

Closed
madhatter42 opened this Issue Apr 23, 2012 · 2 comments

Comments

Projects
None yet
3 participants
@madhatter42

This is more of a question rather than an issue. On our website, users can exchange messages related to a certain object that is stored in our DB (Mongo) as an embedded document in another object. These messages are stored on the embedded document in an array (reason being that we cannot reference embedded documents from other documents).

Now, we want to centralize the messages into their own collection so that we can present them in a unified inbox on the site (along with messages related to other objects). We'd like to do this without having to move out the embedded documents out of the parent objects. We were thinking of making changes to the ODM so that a document can reference embedded documents (think ReferenceEmbedOne and ReferenceEmbedMany annotations). In theory, this sounds like it wouldn't be too hard to implement, but I was wondering if I could get your thoughts on this, @jwage. Could you point me to the classes that I should look at to implement something like this?

@jwage

This comment has been minimized.

Show comment Hide comment
@jwage

jwage Jun 15, 2012

Member

I don't think it would be easily possible to do that.

Member

jwage commented Jun 15, 2012

I don't think it would be easily possible to do that.

@malarzm

This comment has been minimized.

Show comment Hide comment
@malarzm

malarzm Jan 16, 2016

Member

Closing as this duplicates #500

Member

malarzm commented Jan 16, 2016

Closing as this duplicates #500

@malarzm malarzm closed this Jan 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment