范利伟

Results 2 issues of 范利伟

将sessionid存到httpsession的时候不适用固定key,使用httpsessionid作为key不就好了嘛,反正httpsessionid在销毁前是有效的,所以在这个会话内给客户端发消息就很方便了 ```java public void init() { super.init(); if (httpSession != null) httpSession.setAttribute(httpSession.getId() , session.getId()); } ``` ```java websocketEndpoint.sendJson(httpsession.getAttribute(httpsession.getId()), msg); ```

## 关联delete NutDao的insertWith(Object obj, String regex)/insertLinks(Object obj, String regex)都是需要obj这个对象的关联属性有值的情况下才去删除关联表的数据,如果通过主键删除1条数据的同时希望把关联表的数据,只好自定Sql实现。 ## 关联update 还有updateWith(),当关联字段的集合中有新增数据时,也是只update了原有数据,只能手动清掉原有数据,再insert. 希望能在原有方法中得到支持。