久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='WMSJb'><style id='WMSJb'><dir id='WMSJb'><q id='WMSJb'></q></dir></style></legend>
      <bdo id='WMSJb'></bdo><ul id='WMSJb'></ul>
      <tfoot id='WMSJb'></tfoot>
    1. <small id='WMSJb'></small><noframes id='WMSJb'>

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

      1. 使用引用類休眠@OrderBy

        Hibernate @OrderBy with referenced class(使用引用類休眠@OrderBy)
        <i id='FnsIK'><tr id='FnsIK'><dt id='FnsIK'><q id='FnsIK'><span id='FnsIK'><b id='FnsIK'><form id='FnsIK'><ins id='FnsIK'></ins><ul id='FnsIK'></ul><sub id='FnsIK'></sub></form><legend id='FnsIK'></legend><bdo id='FnsIK'><pre id='FnsIK'><center id='FnsIK'></center></pre></bdo></b><th id='FnsIK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='FnsIK'><tfoot id='FnsIK'></tfoot><dl id='FnsIK'><fieldset id='FnsIK'></fieldset></dl></div>
          <tbody id='FnsIK'></tbody>
                <bdo id='FnsIK'></bdo><ul id='FnsIK'></ul>
                  <tfoot id='FnsIK'></tfoot>
                • <legend id='FnsIK'><style id='FnsIK'><dir id='FnsIK'><q id='FnsIK'></q></dir></style></legend>

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

                • 本文介紹了使用引用類休眠@OrderBy的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有一個班級說:ClassA",其中包含ClassB"的集合

                  I have a class say: "ClassA" which has a collection of "ClassB"

                  @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
                  @JoinColumn(name = "COLUMN_NAME")    
                  private List<ClassB> lotsOfClasses;
                  

                  ClassB"具有使用普通舊映射注釋的映射類ClassC":

                  "ClassB" has a mapped class "ClassC" using plain old mapping annotations:

                  public class ClassB {
                  ...
                    @ManyToOne
                    @JoinColumn(name="AD_POINT_ID")
                    private ClassC classC;
                  ...
                  }
                  

                  如何給ClassA的集合添加@OrderBy注解到ClassB,讓集合按照ClassC的name"屬性排序

                  How do I add an @OrderBy annotation to ClassA's collection to ClassB, so that the collection is ordered by the "name" property of ClassC

                  像這樣:

                  @OrderBy(clause="classC.name asc")
                  

                  我得到的只是 Oracle 異常,說 classC 是未知的.

                  All I get are Oracle exceptions saying that classC is unknown.

                  這里的任何幫助都會很棒,因為它現在真的讓我很煩惱.

                  Any help here would be awesome, as its really bugging me at the moment.

                  P.S.我還應該提到在集合上使用 OrderBy 注釋,如下所示:@OrderBy(clause="classC asc")(即沒有 classC 上的 .name)我得到一個有效的 SQL 語句,它使用 classC 的 ID 列(主鍵)進行排序.

                  干杯,標記

                  推薦答案

                  很遺憾,您無法做您想做的事.我在此處回答了類似的問題.

                  It's unfortunately impossible to do what you want. I've answered a similar question here.

                  @OrderBy 僅支持集合元素的 direct 屬性.

                  @OrderBy only supports direct properties of the collection elements.

                  這篇關于使用引用類休眠@OrderBy的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Is there a way to get information about a server using SQL(有沒有辦法使用 SQL 獲取有關服務器的信息)
                  How to get first element by XPath in Oracle(如何在 Oracle 中通過 XPath 獲取第一個元素)
                  Oracle XMLTable- fetching column from parent node(Oracle XMLTable-從父節點獲取列)
                  How to extract element-path from XMLType Node?(如何從 XMLType 節點中提取元素路徑?)
                  Add attribute to xmltype with value taken from sequence(使用取自序列的值將屬性添加到 xmltype)
                  How to enforce xmlforest creat elements even if expression value is null?(即使表達式值為空,如何強制執行 xmlforest creat 元素?)

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

                        <tbody id='qc6nw'></tbody>
                      <i id='qc6nw'><tr id='qc6nw'><dt id='qc6nw'><q id='qc6nw'><span id='qc6nw'><b id='qc6nw'><form id='qc6nw'><ins id='qc6nw'></ins><ul id='qc6nw'></ul><sub id='qc6nw'></sub></form><legend id='qc6nw'></legend><bdo id='qc6nw'><pre id='qc6nw'><center id='qc6nw'></center></pre></bdo></b><th id='qc6nw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qc6nw'><tfoot id='qc6nw'></tfoot><dl id='qc6nw'><fieldset id='qc6nw'></fieldset></dl></div>
                    • <tfoot id='qc6nw'></tfoot>

                        1. <legend id='qc6nw'><style id='qc6nw'><dir id='qc6nw'><q id='qc6nw'></q></dir></style></legend>
                            <bdo id='qc6nw'></bdo><ul id='qc6nw'></ul>

                            主站蜘蛛池模板: 亚洲美女毛片 | 国产精品久久久999 成人在线国产 | 天天综合永久入口 | 一极黄色片 | 伊人精品视频 | 国产做受视频 | 在线看黄色片 | 成人免费毛片嘿嘿连载视频 | 久久久久久久99 | 四虎官网 | 国产精品久久久久久中文字 | 男人操女人的网站 | 日本加勒比视频 | 激情婷婷综合 | 国产美女一区 | 亚洲天堂免费 | 日韩五十路 | 亚洲一区精品视频 | 成人午夜又粗又硬又大 | 三级av网站 | av高清不卡 | 亚洲精品999 | 国产毛片一级 | 久热在线| 亚洲国产精品久久久久 | 国产成人免费在线 | 亚洲视频二区 | 在线日韩欧美 | 日韩精品在线一区 | 成人三级视频在线观看 | 在线精品一区 | 香蕉福利视频 | 日韩成人中文字幕 | av在线免费播放 | 成人黄色在线观看 | 黄色三级网| 久久国产小视频 | 国产精品成人一区二区 | 亚洲欧美国产高清va在线播放 | 国产在线成人 | 黄色小视频在线 |