I am new to hibernate. I am using resin, hibernate with annotation.
I found problem that my first query take too much time to get data from database. The reason I found is that when first time I hit the application first page the hibernate bind all the annotated classes, verify named query etc and then after these work it get the data from the database. After this first hit query the other queries did not take much time as first one. I want to reduce the first query time by binding all annotated classes at compile time.
How to bind all annotated classes at compile time???
Please help me in this problem.
Regards,
wajid
|