久久久久久久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>

                            主站蜘蛛池模板: 免费观看www7722午夜电影 | 精国产品一区二区三区四季综 | 国产羞羞视频在线观看 | 精品国产91乱码一区二区三区 | 亚洲精品久久久久久久不卡四虎 | 久久精品国产一区二区三区 | 日韩一区二区福利视频 | 久久ww| 91看片在线观看 | 国产精品久久久久久模特 | 国产精品无码专区在线观看 | 欧美午夜视频 | 成人国产精品久久 | 99热精品国产 | 日韩欧美天堂 | 久久久久久亚洲精品不卡 | 日韩国产精品一区二区三区 | 久久久久国产一区二区三区 | 欧美一区视频 | 毛片网站在线观看 | 日韩中文一区二区三区 | 国产精品免费看 | 中文字幕第一页在线 | 日韩视频一区 | 在线精品一区二区三区 | 亚洲精品www久久久 www.蜜桃av | 欧美一级三级在线观看 | 99视频在线 | 九色av| 视频一区在线观看 | 久久美女视频 | 日韩精品亚洲专区在线观看 | 91原创视频| 午夜在线免费观看视频 | 在线国产一区二区三区 | 精品欧美一区二区中文字幕视频 | 日韩欧美二区 | 国产欧美在线播放 | 欧美日韩亚洲一区 | 欧美一区二区三区国产 | www.干|