Announcement Announcement Module
Collapse
No announcement yet.
hibernate lazy loading problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • hibernate lazy loading problem

    Hi everybody,

    I'm using spring mvc in a web application. The controllers add hibernate lazy loaded instances to the model and a Jstl view extracts and renders the information. I'm using spring declarative transaction approach.

    The problem happens when the view tries to access a lazy loaded property, a Lazyloadexception is thrown due to absence of a hibernate session. The solution for this problem is to add a transactional advice to the view so that a session is found when the property is accessed.

    My question is like this: is there a view bean that i can add a point-cut to?
Working...
X