Restart

          From now, i will restart my blog , try to record sth of my life, including some thoughts and research results of technology, the only little hope is that the blog can leave my memory of life, as time flying, when i open it , i can get something.

          Technology - Hibernate collection:
          Maybe i used to write sth related before.
          Several points as follows:
          1. Define interface as property, for Hibernate will use its own implementation during runtime.
          2. <key> element is used to identiry foreign key for specified table.
          3. <element> and <composite-element> is used for value type definition while <one-to-many> and <many-to-many> is used for entities type.
          4. indexed-collections contain : map, list, index is used to record position for certain record in the container.<map-key> for map while <index-list> for list.
          Next two items is for bidirection:
          5. inverse can be set in either sides for many-to-many relation.
          6. For one-to-many,  many sides will mantain relationship between object. exception happened when many side is index container.in this situation, it is not a completely "bidirectoinal".

          7. Sort is done in memory while order by is down in DB.
          8. <Bag> is used when property is defined as list, but <index-list> is not welcome.
          9. <idbag> is a list which can generate an id for primary key.

          posted on 2008-06-11 18:27 Sheldon Sun 閱讀(515) 評論(0)  編輯  收藏


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


          網站導航:
           
          <2008年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          導航

          統計

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 信阳市| 喜德县| 霞浦县| 综艺| 温州市| 武夷山市| 加查县| 新蔡县| 双江| 介休市| 江安县| 咸阳市| 宿松县| 洪湖市| 岐山县| 桂林市| 德昌县| 黄梅县| 六枝特区| 绥江县| 东阿县| 南昌县| 股票| 牟定县| 湖口县| 宜宾市| 邓州市| 临安市| 安国市| 德钦县| 桦川县| 博白县| 盐城市| 岑溪市| 错那县| 东乌珠穆沁旗| 西宁市| 襄樊市| 光山县| 闽侯县| 吴川市|