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

<tfoot id='H8iV4'></tfoot>
    • <bdo id='H8iV4'></bdo><ul id='H8iV4'></ul>

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

      <legend id='H8iV4'><style id='H8iV4'><dir id='H8iV4'><q id='H8iV4'></q></dir></style></legend>

      Spring CrudRepository findByInventoryIds(List&lt;Long&am

      Spring CrudRepository findByInventoryIds(Listlt;Longgt; inventoryIdList) - equivalent to IN clause(Spring CrudRepository findByInventoryIds(Listlt;Longgt;inventoryIdList) - 相当于 IN 子句)
        <bdo id='WbAat'></bdo><ul id='WbAat'></ul>
          <tbody id='WbAat'></tbody>
        1. <i id='WbAat'><tr id='WbAat'><dt id='WbAat'><q id='WbAat'><span id='WbAat'><b id='WbAat'><form id='WbAat'><ins id='WbAat'></ins><ul id='WbAat'></ul><sub id='WbAat'></sub></form><legend id='WbAat'></legend><bdo id='WbAat'><pre id='WbAat'><center id='WbAat'></center></pre></bdo></b><th id='WbAat'></th></span></q></dt></tr></i><div id='WbAat'><tfoot id='WbAat'></tfoot><dl id='WbAat'><fieldset id='WbAat'></fieldset></dl></div>

          1. <tfoot id='WbAat'></tfoot>

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

            • <legend id='WbAat'><style id='WbAat'><dir id='WbAat'><q id='WbAat'></q></dir></style></legend>
                本文介绍了Spring CrudRepository findByInventoryIds(List&lt;Long&gt;inventoryIdList) - 相当于 IN 子句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                在 Spring CrudRepository 中,我们是否支持字段的IN 子句"?即类似于以下内容?

                In Spring CrudRepository, do we have support for "IN clause" for a field? ie something similar to the following?

                 findByInventoryIds(List<Long> inventoryIdList) 
                

                如果没有这样的支持,可以考虑哪些优雅的选择?为每个 id 触发查询可能不是最优的.

                If such support is not available, what elegant options can be considered? Firing queries for each id may not be optimal.

                推荐答案

                findByInventoryIdIn(ListinventoryIdList) 应该可以解决问题.

                HTTP 请求参数格式如下:

                The HTTP request parameter format would be like so:

                Yes ?id=1,2,3
                No  ?id=1&id=2&id=3
                

                JPA 存储库关键字的完整列表可以在 当前文档列表.它表明 IsIn 是等价的 - 如果您更喜欢动词以提高可读性 - 而且 JPA 还支持 NotInIsNotIn.

                The complete list of JPA repository keywords can be found in the current documentation listing. It shows that IsIn is equivalent – if you prefer the verb for readability – and that JPA also supports NotIn and IsNotIn.

                这篇关于Spring CrudRepository findByInventoryIds(List&lt;Long&gt;inventoryIdList) - 相当于 IN 子句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 中的默认语言环境设置以使其保持一致?)

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

                    <legend id='3Kn0f'><style id='3Kn0f'><dir id='3Kn0f'><q id='3Kn0f'></q></dir></style></legend>
                  • <small id='3Kn0f'></small><noframes id='3Kn0f'>

                      <bdo id='3Kn0f'></bdo><ul id='3Kn0f'></ul>
                        1. <tfoot id='3Kn0f'></tfoot>