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)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 尤溪县| 瑞丽市| 乡城县| 德昌县| 平泉县| 石城县| 盈江县| 都兰县| 武川县| 象山县| 砀山县| 孙吴县| 广昌县| 荆门市| 泉州市| 浙江省| 枞阳县| 桐城市| 青田县| 卢龙县| 中宁县| 即墨市| 松江区| 太白县| 赫章县| 哈尔滨市| 花莲市| 新津县| 吐鲁番市| 瑞金市| 泾川县| 壶关县| 孟津县| 江川县| 定兴县| 石家庄市| 宜丰县| 潜山县| 江山市| 天台县| 亳州市|