Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hi All,
My problem is this. there are certain joined-subclass(B,C,D...) to a class say A.
When i load the instance of C, the table corresponding to D,E... r also queried.
Sample code :
session.get(C.class,id);
i tried setting hibernate.max_fetch_size to 0 and set polymorphism to explicit. but neither worked.
The issue here is, the query happens to be very long as query drills down to nth table even to fetch the instance of B.
from previous discussions, i could find certain uncertainity in these parameters. Did anyone try setting this parameter? does it require any other configuration.
Hibernate version: 3.1
Mapping documents:
Code between sessionFactory.openSession() and session.close():
session.get(C.class,id);