Cameron Wallace McKenzie wrote:
there is any method to solve this without changing the FetchType to EAGER ?
Well, that's sorta what you want, isn't it?
You can call the getter method earlier, within an open session.
You could also extend the Session. Look at the Hibernate "Open Session in View" pattern. That solves many of these types of problems.
-Cameron McKenzie