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

    評論

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

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


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


    網站導航:
     
    主站蜘蛛池模板: 亚洲国产精品尤物YW在线观看| 亚洲伊人久久综合中文成人网| 日韩免费无码视频一区二区三区 | 亚洲国产系列一区二区三区| a级毛片无码免费真人久久| 亚洲人成无码www久久久| 日本视频免费观看| mm1313亚洲国产精品美女| 精品成人一区二区三区免费视频| 国产成人久久AV免费| 亚洲嫩模在线观看| 8x8×在线永久免费视频| 亚洲美女人黄网成人女| 国产香蕉九九久久精品免费| 亚洲熟女精品中文字幕| 国产精品成人四虎免费视频| 午夜在线亚洲男人午在线| 国产三级免费电影| 国产免费A∨在线播放| 亚洲成年轻人电影网站www| 国产四虎免费精品视频| 亚洲成AV人影片在线观看| 国产亚洲精品a在线观看| 久久精品人成免费| 亚洲爆乳精品无码一区二区| 久久亚洲精品无码播放| 99精品视频在线观看免费专区| 亚洲精品无码av天堂| 免费国产成人α片| 亚洲国产精品专区| 成人永久福利免费观看| 国产日韩AV免费无码一区二区三区| 成人免费无毒在线观看网站| 香蕉97碰碰视频免费| 亚洲国产精品无码久久一区二区 | 五月天婷婷免费视频| 亚洲第一区香蕉_国产a| 日韩免费一区二区三区在线| 免费看一级毛片在线观看精品视频| 精品少妇人妻AV免费久久洗澡| 亚洲免费电影网站|