<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 閱讀(3071) 評論(1)  編輯  收藏

    評論

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

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


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


    網站導航:
     
    主站蜘蛛池模板: AV激情亚洲男人的天堂国语| 亚洲精品第一国产综合精品 | 亚洲第一精品电影网| 西西人体免费视频| 亚洲乱码国产乱码精品精| 最近国语视频在线观看免费播放| 亚洲午夜福利AV一区二区无码| 国产精品极品美女自在线观看免费| 亚洲AV无码成人精品区大在线| 一区二区免费国产在线观看| 亚洲视频在线精品| baoyu122.永久免费视频| 亚洲av无码国产精品色午夜字幕| 无码国产精品一区二区免费16 | 亚洲av无码片区一区二区三区| 欧亚精品一区三区免费| 亚洲成AV人片高潮喷水| 亚洲精品无码av天堂| 日本免费A级毛一片| 亚洲网站在线播放| 特级淫片国产免费高清视频| 午夜成人无码福利免费视频| 自拍偷自拍亚洲精品情侣| 97免费人妻在线视频| 中文无码亚洲精品字幕| 亚洲Av无码国产情品久久 | 美女视频黄a视频全免费| 亚洲风情亚Aⅴ在线发布| 亚洲国产中文v高清在线观看| 在线成人精品国产区免费| 亚洲国产精品成人精品小说| 免费人成网站在线高清| 久久aa毛片免费播放嗯啊| 狠狠色香婷婷久久亚洲精品| 亚洲A丁香五香天堂网| 色欲色香天天天综合网站免费| 亚洲偷自拍另类图片二区| 丁香五月亚洲综合深深爱| 国产91色综合久久免费分享| 香蕉视频免费在线| 亚洲视频精品在线观看|