I have a query that returns a list of objects to generate a PDF page using the seampdf package. However, these objects remain in hibernate session even after the pdf was generated. I tried call session clear at the end of the page or set query cacheable to false. Not work. I think it may because the page rendering still need the list of objects. I wonder if there's an event that can be triggered after rendering a page.