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)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 山阴县| 邛崃市| 洪雅县| 岗巴县| 大化| 上思县| 塔城市| 奉新县| 永安市| 永丰县| 仙居县| 武汉市| 格尔木市| 高淳县| 漳浦县| 封丘县| 长宁县| 庆元县| 扎赉特旗| 乐平市| 同心县| 永寿县| 泰宁县| 古蔺县| 天长市| 峨边| 韶山市| 平阴县| 云阳县| 邵武市| 麻江县| 苏尼特右旗| 汾阳市| 资阳市| 浑源县| 巴林左旗| 武汉市| 邹城市| 南岸区| 都兰县| 巴林右旗|