1. Hibernate, HTTP Session, and LazyInitializationException struts.1045723.n5.nabble.comDoes anyone have a good solution for objects stored in an HTTP Session that should be reattached per request? For example, like the authenticated "user" object stored in the HTTP Session. I had a servlet filter written that attached the entity per request, but a double-click from the user showed the futility of that approach. You can't have one entity attached ... |
2. LazyInitializationException (Hibernate 3.3.2, Struts 2) forum.hibernate.orgCan anyone explain this? Why just the second "setUsuario" doesn't gives me a LazyInitializationException (when rendering the JSP)? Code: public String execute() throws Exception { // Executa cdigo comum s pginas super.execute(); //setUsuario(base_usuario); ... |