Suppose I have to fetch categories from products. We can do by forming an HQL without any hibernate mapping. Then what is the advantage of instead doing a hibernate mapping.
In hibernate we can fetch from the second table using a HQL select query. Such a query does not require hibernate mapping.Then what is the advantage of using mapping.
thanks
In hibernate we can fetch from the second table using a HQL select query. Such a query does not require hibernate mapping.Then what is the advantage of using mapping.
thanks