Hibernate version:3.2
Hi,
I have many to many relation with a join table. I have set lazy="true" between them, because at most of the places I dont need to access properties of B from A. But on one page I want to do that. So I tried using Hibernate.initialize(A.getA_B(), where A_B is a collection of B in A through the join table. Also lazy is set to false in the A_B mapping.
But I still get the lazyloading exception.
Could somebody tell why the initialize method doesnt work for me.?
Is there some other way of doing this?
thnx
|