I have set the property lazy="false" in my hbm file for the column Contact in the table "Employee"
The below query is executed to retrieve the Employee with Id 5:
Select e from Employee e where e.id = 5
On execution, a number of queries are being executed and I guess it is due to non Lazy Loading.
How to make sure that only one query is executed? Can we change the query keeping the property lazy as false? If not, what should be the change in the query to retrieve the record?
I'm using Spring+Hibernate