Persisitent object

          Hard requirenment:
          1. No-argument construct , package visiblity, usde instantiate object by Constructor.newInstance().

          Option requirement:
          1. Pojo.
          2. Implement hashCode and equals for two resons :
              1) Object will be store in a set property.
              2) Instance span to sesssion scope, make a detached object persistent again, will call equals, for java indentify(==) and db indentify(pk) is not available for the condition(object doest not have identify before persistent),

          Note: hashCode generation should not use indentify proeprty  of object.

          posted on 2007-05-17 08:51 Sheldon Sun 閱讀(243) 評論(0)  編輯  收藏


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


          網站導航:
          博客園   IT新聞   Chat2DB   C++博客   博問  
           
          <2007年5月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導航

          統計

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 从江县| 莫力| 泌阳县| 疏附县| 麻阳| 东莞市| 外汇| 南部县| 冀州市| 台山市| 英超| 肥乡县| 三门县| 上林县| 类乌齐县| 尉氏县| 华坪县| 彭山县| 秦安县| 佛学| 乌鲁木齐市| 绥宁县| 兴安盟| 于都县| 鸡西市| 江源县| 和静县| 屏南县| 本溪| 岑溪市| 广平县| 谷城县| 陵水| 松滋市| 久治县| 镶黄旗| 泰来县| 永福县| 庆阳市| 广西| 深水埗区|