<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    lqxue

    常用鏈接

    統計

    book

    tools

    最新評論

    為什么在hibernate中用list影射one-to-many時,在查詢數據時,經常有null值

     Learned a little this weekend - Bag vs List in Hibernate.  I was troubled since i really wanted to have a Java ArrayList in my object so i could index in my jsp and iterate over the list in an update form.  Using a Hibernate Set left me unable to index.  A Hibernate List left the Java ArrayList populated using the primary key - if the keys were 0,1,2,... that would have been ok.  But i only needed a few items from the database in my ArrayList and since the Hibernate List maintains the position of the object in the ArrayList equal to the position in the database the technique was leaving holes in my ArrayList of nulls.  Of course this was not what i wanted.  Now this may be explained in the documentation but after reading it twice i did not fully understand the Hibernate List.  Over the weekend i read the book Hibernate in Action and discovered the Hibernate Bag and it solved my problem.  I can use a Java ArrayList that is loaded simply by adding new objects to the beginning of the ArrayList.

    posted on 2007-04-05 16:50 lqx 閱讀(3067) 評論(1)  編輯  收藏

    評論

    # re: 為什么在hibernate中用list影射one-to-many時,在查詢數據時,經常有null值 2015-06-15 18:53 游客

    哪位大神知道的,求指教!  回復  更多評論   


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 四虎影在线永久免费观看| 中文字幕免费在线观看| 免费黄色毛片视频| 亚洲中文字幕无码中文| 日韩版码免费福利视频| 亚洲Av高清一区二区三区| 少妇高潮太爽了在线观看免费| 亚洲酒色1314狠狠做| 亚州免费一级毛片| 亚洲a∨无码男人的天堂| 西西大胆无码视频免费| 亚洲av永久无码| 免费真实播放国产乱子伦| 一级毛片正片免费视频手机看 | 亚洲精品视频在线观看免费| 亚洲国产精品国自产拍电影| 无码人妻久久一区二区三区免费| 亚洲一区二区三区电影| 性xxxxx免费视频播放| 亚洲人成人网站18禁| 免费一级肉体全黄毛片| 黄视频在线观看免费| 亚洲AV一宅男色影视| 日韩视频在线精品视频免费观看 | jzzijzzij在线观看亚洲熟妇| 免费人成视频在线观看视频| 国产成人无码免费看片软件 | 国产亚洲成人久久| 最近2022中文字幕免费视频| 亚洲熟妇无码八V在线播放| 亚洲国产精品无码久久九九| 免费看搞黄视频网站| 亚洲中字慕日产2020| 一级毛片直播亚洲| 最近中文字幕免费2019| 亚洲a∨国产av综合av下载| 亚洲人成精品久久久久| 在线a级毛片免费视频| 一区二区三区在线免费| 亚洲精品456在线播放| 亚洲精品一级无码中文字幕|