The architecture of my project is:hibernate+spring+webwork,with Hibernate Annotation,the mapping relationship of my model is setted to onetomany,and property"fetch" is setted to "FetchType.EAGER",while in hibernate-cfg.xml,default-lazy has also been setted to false。But the "classic" LazyInitializationException is also thrown,it says "failed to lazily initialize session or session was closed".Since I'm using FetchType.EAGER,and default-lazy has been turned off,why does this exception still thrown?
|