-
Jan 3rd, 2010, 06:47 AM
#1
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?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules