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 阅读(234) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
 
<2007年5月>
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

导航

统计

常用链接

留言簿(3)

随笔档案

文章档案

搜索

最新评论

阅读排行榜

评论排行榜