posted 17 years ago
In my mapping i have one named query defined as
from productGroup order by name
producGroup has many products ...<set name="products" ...>
so running the above queries it also tries to load all the products..That is ok with me but i want it to be loaded in singel query instead of individual select statements ... How do i wrote the above query so it also load all products while loading the product group instead of running n times select for each product whicle referring the collection products.
thanks
SCJP 1.4<br />SCWCD 1.4(91%)<br />Working on SCJD -Bodgitt & Scrapper Constructions...<br /> <br />"It takes 43 muscles to frown & 17 to smile but it doen't take any to just sit there with a dumb look on your face .. Keep Smiling "