Hibernate, session, lazyloading
I am developing a Java web application using Hibernate and JSF/primefaces. am sometimes getting errors like 1) an object with same identifier is already associated with session. 2) failed to load lazy initialization * ,no session exist or session is already closed. I know this is due to improper coding in my app. this is the way am doing aap: When a user requests for a page(Let it be a list of Employees). the user will get the employee list page(empployeeList.xhtml) EmployeeListMBean is the managed bean for this page. in the managed bean in the constructor, am calling a method