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


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


          網站導航:
           
          <2007年5月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導航

          統計

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 闵行区| 金秀| 湟源县| 屏东市| 大田县| 雷波县| 壤塘县| 德惠市| 盘山县| 张家口市| 东山县| 焦作市| 龙游县| 清河县| 北京市| 库车县| 徐闻县| 临夏市| 凤台县| 云南省| 肇源县| 梁河县| 平陆县| 上犹县| 改则县| 灵武市| 枞阳县| 罗田县| 高雄县| 淮北市| 桓台县| 连州市| 福泉市| 津南区| 文化| 和龙市| 青河县| 沙田区| 临澧县| 奇台县| 武穴市|