Joined: Wed Jun 10, 2015 2:48 pm Posts: 1				
			 | 
			
				
				
					| 
					
						 Hi 
  I am working on an existing application which has hibernate lazy=false. I do not want to fetch the children for this specific flow. How can I turn off eager loading. I cannot modify hbm.xml as it would have a big impact.
  Details:
  I have a class A. A has many children B. B has many children C. C has many children D.
  these are the hbm configurations. A --> B is lazy B --> C is Eager C --> D is Eager
  While fetching A we do a hibernate.initialize on B but since B fetches C eagerly and C fetches D eagerly, D is initialized as well which I dont want as it is impacting performance for this particular flow.
 
  Is there a way I can turn off C-->D eager loading using Java.
  Thanks !!!!
  Regards Saurav 
					
  
						
					 | 
				 
				 
			 |