[JAVA-855] DBRef should handle $db Created: 17/Jun/13  Updated: 19/Oct/16  Resolved: 24/May/16

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 3.3.0

Type: New Feature Priority: Major - P3
Reporter: Jérôme Leleu Assignee: Jeffrey Yemin
Resolution: Done Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

DBRef should handle $db for reads and writes, as soon as the server itself will be able to handle it.



 Comments   
Comment by Githook User [ 24/May/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-855: Support $db field in DBRef and associated encoders, decoders, and transformers
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/2319a6cc01844efae71ada65c92083a6197c3cf9

Comment by Viktor Sidochenko [ 20/May/16 ]

@justin.lee my problem is not in cross-database references. But in cross-framework interation. Data in database interacts with java application on Morphia in one hand and php mongo ODM in another. And php mongo odm inserts db in references. And I cannot resolve with Morphia.

Comment by Justin Lee [ 18/May/16 ]

vsidochenko what issues are you seeing with Morphia? References work just fine even with multiple databases in play. Now, Morphia does not, and can't, support cross-database references but those are probably an anti-pattern anyway.

Comment by Viktor Sidochenko [ 19/Mar/16 ]

What`s up with this issue? It break references support in morphia: https://github.com/mongodb/morphia/issues/757

Comment by Ross Lawley [ 15/Jun/15 ]

I believe the original reporter of the ticket marked it as blocked, due to lack of server support for $db when fetching DBRef's from the database. So it was more than just about the string representation of a DBRef.

Comment by Giovanni Lovato [ 15/Jun/15 ]

How could this issue be blocked by SERVER-9677? That's just about string representation of DBRef.

Comment by Jérôme Leleu [ 17/Jun/13 ]

This issue is blocked by : https://jira.mongodb.org/browse/SERVER-9677.

Generated at Thu Feb 08 08:53:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.