Hi friends,
Here is one Sql Query:-
SqlQuery==>SELECT O.*, P.* FROM ORDERS O, PRODUCT P WHERE O.ORDER_ID=P.ORDER_ID;
And the Hibernate query for it is==>
List orders = session.createCriteria(Order.class) .setFetchMode(“products”,FetchMode.JOIN) .list();
Could u plz tell me that whats the first parameter of setFetchMode(). According to one manual which i got, the first parameter is known as String AssociationPath.
But i couldnt understand what does it mean.
Could u plz put more focus on it.
Thanks Alot.
With High Regards
Saurav Jain
_________________ I Really want to share my knowledge and learn from you all people specaily about Hibernate.. Thanks Lot
|