This content has been marked as final.
Show 2 replies
-
1. Re: Mass Data Association Mapping / Finding
epbernard Mar 25, 2006 10:19 AM (in response to jxerxes)you should rather map it bidirectional
otherwise
"select stock from Warehouse w join w.stocks stock where stock.whatever > :whatever and w = :currentWarehouse"
em.createNamedQuery("myquery").setParameter("whatever", whatever).setParameter("currentWarehouse", myWarehouse).getResultList(); -
2. Re: Mass Data Association Mapping / Finding
jxerxes Mar 27, 2006 2:17 AM (in response to jxerxes)Thanks for the quick answer!