<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片| 成人免费午间影院在线观看| 亚洲高清无在码在线无弹窗| 亚在线观看免费视频入口| 亚洲精品免费在线观看| 足恋玩丝袜脚视频免费网站| 久久亚洲美女精品国产精品| 18禁美女黄网站色大片免费观看| 中文字幕亚洲色图| 我的小后妈韩剧在线看免费高清版| 亚洲综合亚洲国产尤物| 国产成在线观看免费视频| 亚洲乱码在线卡一卡二卡新区| 成年女人18级毛片毛片免费观看| 伊人久久亚洲综合影院首页| 国产在线19禁免费观看国产| 色吊丝性永久免费看码| 国产精品亚洲аv无码播放| 久久国产精品免费观看| 亚洲第一精品电影网| 四虎成人免费网站在线| 无码日韩人妻AV一区免费l | 豆国产96在线|亚洲| 亚洲Av无码乱码在线播放| 91视频免费观看| 色拍自拍亚洲综合图区| 成年人网站在线免费观看| 日韩毛片一区视频免费| 亚洲成熟xxxxx电影| 成年女人毛片免费播放人| 一级免费黄色毛片| 亚洲va在线va天堂va不卡下载 | 国产网站免费观看| 久久国产精品免费| 亚洲毛片免费观看| 日本免费一区二区三区最新| 香蕉视频在线免费看| 亚洲制服在线观看| 亚洲国产成人久久综合碰| 日本一卡精品视频免费|