用Session作为facade模式,在后面用Entity封装数据库,然后在Session中封装用户的远程操作。
在Session中应该有bool addObject(Object object),bool delObject(KeyObject key)对应着Entity中的Create和Remove.另应该还有可以集合添加的addObjects(Collection objects),updataObjects(Collection objects)等等。
Entity采用Local。