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

                            主站蜘蛛池模板: 国产激情网| 国产日韩一区二区三区 | 国产精品久久久久久久毛片 | 免费国产精品久久久久久 | 中文字幕精品视频在线观看 | 免费精品视频一区 | 天堂一区在线观看 | 久久精品国产精品青草 | 午夜精品久久久久久久久久久久 | 国产成人99久久亚洲综合精品 | 91在线免费观看网站 | 精品熟人一区二区三区四区 | 成人免费看片 | 天天天天天天天干 | 一区二区视频 | 天天综合网天天综合 | 天堂在线中文 | 欧美视频三区 | 99看片网| 免费小视频在线观看 | 中文在线一区二区 | 国产精品成人一区二区三区 | 精品日韩一区二区三区av动图 | 久久久久9999亚洲精品 | 草草草草视频 | 中文av在线播放 | 激情欧美日韩一区二区 | 一区二区三区免费 | 最新中文字幕在线 | 激情五月综合 | 国产色 | 亚洲一区二区三区四区av | 亚洲精品一区国语对白 | 国产精品一区二区三区在线 | 日韩久久久久久久久久久 | 在线免费观看成人 | 久久久999国产精品 中文字幕在线精品 | 国产高清精品在线 | 国产成人一区二区三区久久久 | 久久精品国产一区二区电影 | 超碰精品在线观看 |