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

                            主站蜘蛛池模板: 国产我和子的乱视频网站 | 国产一级片网站 | aaa在线观看 | 国产高清一区二区 | 亚洲欧美激情国产综合久久久 | 亚洲欧美中文日韩在线v日本 | 日韩精品一区二区三区高清免费 | 国产黄色麻豆视频 | av毛片免费| 午夜视频一区二区 | 亚洲第一av | 中文字幕第一页在线 | 男女羞羞在线观看 | 国产亚洲精品精品国产亚洲综合 | 中文无码日韩欧 | 精品国产一区二区三区四区在线 | 久久成人免费视频 | 精品综合久久久 | 中文字幕一区二区三区不卡 | 精品欧美乱码久久久久久 | 欧美日韩国产高清 | 日本a∨精品中文字幕在线 亚洲91视频 | 午夜免费福利片 | 久久国内 | 国产精品毛片一区二区三区 | 欧美一区二区三区电影 | 高清亚洲| 国产人成在线观看 | 日韩不卡在线 | 亚洲欧美国产一区二区三区 | 国产精品一区一区三区 | www.国产.com| 亚洲国产精品99久久久久久久久 | 国产精品美女视频 | 99日韩| 欧美精品一区二区三区在线播放 | 日本黄视频在线观看 | 亚洲一区二区在线播放 | 91精品久久久久久久久久 | 在线国产一区二区三区 | 日韩精品a在线观看图片 |