<tfoot id='u47Jk'></tfoot>

  1. <i id='u47Jk'><tr id='u47Jk'><dt id='u47Jk'><q id='u47Jk'><span id='u47Jk'><b id='u47Jk'><form id='u47Jk'><ins id='u47Jk'></ins><ul id='u47Jk'></ul><sub id='u47Jk'></sub></form><legend id='u47Jk'></legend><bdo id='u47Jk'><pre id='u47Jk'><center id='u47Jk'></center></pre></bdo></b><th id='u47Jk'></th></span></q></dt></tr></i><div id='u47Jk'><tfoot id='u47Jk'></tfoot><dl id='u47Jk'><fieldset id='u47Jk'></fieldset></dl></div>
    <legend id='u47Jk'><style id='u47Jk'><dir id='u47Jk'><q id='u47Jk'></q></dir></style></legend>

    <small id='u47Jk'></small><noframes id='u47Jk'>

    • <bdo id='u47Jk'></bdo><ul id='u47Jk'></ul>
    1. 未急切获取 DBRefs(Mongo 文档引用)

      DBRefs (Mongo Document references) not fetched eagerly(未急切获取 DBRefs(Mongo 文档引用))
      • <bdo id='c79nQ'></bdo><ul id='c79nQ'></ul>

          <i id='c79nQ'><tr id='c79nQ'><dt id='c79nQ'><q id='c79nQ'><span id='c79nQ'><b id='c79nQ'><form id='c79nQ'><ins id='c79nQ'></ins><ul id='c79nQ'></ul><sub id='c79nQ'></sub></form><legend id='c79nQ'></legend><bdo id='c79nQ'><pre id='c79nQ'><center id='c79nQ'></center></pre></bdo></b><th id='c79nQ'></th></span></q></dt></tr></i><div id='c79nQ'><tfoot id='c79nQ'></tfoot><dl id='c79nQ'><fieldset id='c79nQ'></fieldset></dl></div>

            <tfoot id='c79nQ'></tfoot>

            • <small id='c79nQ'></small><noframes id='c79nQ'>

                <tbody id='c79nQ'></tbody>

            • <legend id='c79nQ'><style id='c79nQ'><dir id='c79nQ'><q id='c79nQ'></q></dir></style></legend>

              • 本文介绍了未急切获取 DBRefs(Mongo 文档引用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我在最简单的化身中使用 Mongo(结合 Spring Data).

                I am using Mongo in its simplest avatar possible (in conjunction with Spring Data).

                我有两个(第一类)实体 (@Documents) A 和 B,其中 A 在其中包含 B 的引用 (@DBRef).创建 A 和 B 时一切正常.但是,当读取对象 A(按 Id)时,引用 B 始终为 null.

                I have two (first class) entities (@Documents) A and B, where A has a reference (@DBRef) of B within it. Everything works fine when creating A and B. However, when reading object A (by Id), the reference B is always null.

                我相信默认情况下会急切获取 DBRefs(请参阅 http://static.springsource.org/spring-data/data-document/docs/current/reference/html/#mapping-usage-references),但目前的行为是反对.任何想法为什么?

                I believe DBRefs are eagerly fetched by default (see http://static.springsource.org/spring-data/data-document/docs/current/reference/html/#mapping-usage-references), but the behavior currently is against that. Any ideas why?

                推荐答案

                迁移到 Spring Data Mongo M5 构建解决了这个问题.所以,在那之前一定是个bug.

                Moving over to the Spring Data Mongo M5 build resolved this. So, must be a bug until then.

                这篇关于未急切获取 DBRefs(Mongo 文档引用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                    • <bdo id='DC7D5'></bdo><ul id='DC7D5'></ul>
                      <i id='DC7D5'><tr id='DC7D5'><dt id='DC7D5'><q id='DC7D5'><span id='DC7D5'><b id='DC7D5'><form id='DC7D5'><ins id='DC7D5'></ins><ul id='DC7D5'></ul><sub id='DC7D5'></sub></form><legend id='DC7D5'></legend><bdo id='DC7D5'><pre id='DC7D5'><center id='DC7D5'></center></pre></bdo></b><th id='DC7D5'></th></span></q></dt></tr></i><div id='DC7D5'><tfoot id='DC7D5'></tfoot><dl id='DC7D5'><fieldset id='DC7D5'></fieldset></dl></div>
                      1. <legend id='DC7D5'><style id='DC7D5'><dir id='DC7D5'><q id='DC7D5'></q></dir></style></legend>
                          <tbody id='DC7D5'></tbody>
                      2. <tfoot id='DC7D5'></tfoot>

                          <small id='DC7D5'></small><noframes id='DC7D5'>